软件广告目录设计说明书
软件广告目录设计说明书本帖最后由 tzbm123456 于 2019-8-18 10:36 编辑
一、CadDrawCadDraw二、Architectural(一)Architecture(建筑专业)1、ArchCommon,包含基本和轴线功能;2、ArchStructure,包含柱、墙、梁、板功能;3、Door,包含门功能;4、Window,包含窗功能;5、Balcony,包含阳台功能;6、Roof,包含屋顶功能;(二)Structure(结构专业)Structure,包含结构专业的所有功能;(三)Electric(电气专业)Electric,包含结构专业的所有功能;(四)HVAC(暖通专业)HVAC,包含结构专业的所有功能;(五)Water(给排水专业)Water,包含结构专业的所有功能;(六)Budget(预算专业)Budget,包含预算专业的所有功能;(七)EnergyCons(节能专业)EnergyCons,包含节能专业的所有功能;
flags的含义
onMouseMove(flags, x, y, view)判断鼠标左键是否被按下 flags取值如下:
符号常量数值含义
MK_CONTROL8Ctrl键被按下
MK_LBUTTON1左鼠标键被按下
MK_MBUTTON16中鼠标键被按下
MK_RBUTTON2右鼠标键被按下
MK_SHIFT4Shift键被按下
本帖最后由 tzbm123456 于 2019-8-20 23:35 编辑
Ruby To Js 的控制 def init()
###状态文字
@mStatus_text="请选择标注弧线起点—Point1:";
Sketchup.status_text=@mStatus_text;
###实体类
@shape = Shape.new self;
###初始化@model变量值
@model=Sketchup.active_model;
###界面属性
@m_Text="******";
@m_Material=@model.materials.current.name;
@m_Layer=@model.active_layer.name;
@m_Depth=10.mm;
@m_NormalKey="反向";
@m_DimStyle=@model.get_attribute("Style","DimCurrStyle");
if @m_DimStyle.class==NilClass
@m_DimStyle="DimStandard";
end
@m_TextHeight=300.mm;
@m_TextVertOffVal=100.mm;
@m_WidthRatio=0.6;
@m_Point1=Geom::Point3d.new();
@m_Point2=Geom::Point3d.new();
@m_Point3=Geom::Point3d.new();
@m_BaseArcPoint=Geom::Point3d.new();
@m_ArcWidth=30.mm;
@m_ArcAccuracy=5.mm;
@m_ArrowWidth=30.mm;
@m_ArrowLength=180.mm;
@m_OrVerticalArc=true;
setHtmlValue();
end
def setHtmlValue()
###传递$plan01siteurl_ad变量值至Html界面
execute_script "initFrame('#{$plan01siteurl_ad}')";
###传递其他变量值至Html界面
execute_script "$('#Text').val('#{@m_Text}')";
setMaterialHtml();
execute_script "$('#Material').val('#{@m_Material}')";
setLayerHtml();
execute_script "$('#Layer').val('#{@m_Layer}')";
execute_script "$('#Depth').val('#{@m_Depth}')";
execute_script "$('#Normal').val('#{@m_NormalKey}')";
setDimStyleHtml();
execute_script "$('#DimStyle').val('#{@m_DimStyle}')";
execute_script "$('#TextHeight').val('#{@m_TextHeight}')";
execute_script "$('#TextVertOffVal').val('#{@m_TextVertOffVal}')";
execute_script "$('#WidthRatio').val('#{@m_WidthRatio}')";
execute_script "$('#ArcWidth').val('#{@m_ArcWidth}')";
execute_script "$('#ArcAccuracy').val('#{@m_ArcAccuracy}')";
execute_script "$('#ArrowWidth').val('#{@m_ArrowWidth}')";
execute_script "$('#ArrowLength').val('#{@m_ArrowLength}')";
if (@m_OrVerticalArc.class==TrueClass)
execute_script "$('#OrVerticalArc').prop('checked',true)";
else
execute_script "$('#OrVerticalArc').prop('checked',false)";
end
end
def setMaterialHtml()
tmpMaterials=@model.materials;
styleHtml=""
tmpMaterials.each{|material|
styleHtml += "<option value='#{material.name}'>#{material.name}</option>"
}
execute_script "$('#Material').html(\"#{styleHtml}\")" #执行字符串
end
def setLayerHtml()
tmpLayers=@model.layers;
styleHtml=""
tmpLayers.each{|layer|
styleHtml += "<option value='#{layer.name}'>#{layer.name}</option>"
}
execute_script "$('#Layer').html(\"#{styleHtml}\")" #执行字符串
end
def setDimStyleHtml()
tmpDimTypeFileStr = Sketchup.find_support_file "DimStyle.01KJ", "Plugins/01BIM/style"
tmpDimTypeFile = open(tmpDimTypeFileStr,"r");
tmpStrArr=tmpDimTypeFile.readlines;
tmpDimTypeFile.close;
styleHtml=""
tmpStrArr.each{|mStr|
tmpArr=mStr.chomp.split(",");
tmpStr1=tmpArr;
if (tmpStr1!="")
styleHtml += "<option value='#{tmpStr1}'>#{tmpStr1}</option>"
end
}
execute_script "$('#DimStyle').html(\"#{styleHtml}\")" #执行字符串
end
页:
[1]