(五)成员函数 1、initialize(m_Entities=Sketchup.active_model.entities) 2、setEntityID(m_EntityID) 3、setBuildingStr(m_BuildingStr) 4、setFloorStr(m_FloorStr) 5、setType(m_Type) 6、setBianHao(m_BianHao) 7、setEngiMatStr(m_EngiMatStr) 8、setWallDepth(m_WallDepth) 9、setElevationBottom(m_ElevationBottom) 10、setElevationTop(m_ElevationTop) 11、setFloorElevation(m_FloorElevation) 12、setPoint1(m_Point1) 13、setPoint1Left(m_Point1Left) 14、setPoint1Right(m_Point1Right) 15、setPoint2(m_Point2) 16、setPoint2Left(m_Point2Left) 17、setPoint2Right(m_Point2Right) 18、setPoint3(m_Point3) 19、setPoint3Left(m_Point3Left) 20、setPoint3Right(m_Point3Right) 21、setLeftDepth(m_LeftDepth) 22、setLeftMat(m_LeftMat) 23、setRightDepth(m_RightDepth) 24、setRightMat(m_RightMat) 25、setBottomMat(m_BottomMat) 26、setTopMat(m_TopMat) 27、setFirstMat(m_FirstMat) 28、setLastMat(m_LastMat) 29、setHoleMat(m_HoleMat) 30、setHole(m_Hole) 31、setHoleBottomOffset(m_HoleBottomOffset) 32、setCenPtBottom(m_CenPtBottom) 33、countVariable() 34、updatePtLR(): 获取@mLeftArrB、@mRightArrB、@mLeftArrT、@mRightArrT 用于IM用户 35、createEntity():调用层,生成实体主程序 36、createEntArcDef_JM():定义层,创建实体子程序——初级会员 37、drawEntArcCore_JM(ents):核心层,绘制实体子程序,供初级会员的定义层使用 38、createEntArcDef_IM():定义层,创建实体子程序——中级会员 39、drawEntArcCore_IM(ents):核心层,绘制实体子程序,供中级会员的定义层使用 40、setAttribute():设置实体属性 41、getValues(dictionary):获取字典值数组 42、getKeys(dictionary):获取字典关键字数组 43、getDictKeyValue(dictionary,key):获取字典关键字对应的值 44、getDictLength(dictionary):获取字典关键字个数 45、updateArguments():根据新实体ID更新实例变量 46、countSerialNum():计算name包含"WallArc"实体的总数量,返回值为Fixnum型值,赋予@mSerialNum 47、createHoleArc():绘制弧墙墙洞 48、calculationLAV():统计长度、面积、体积 49、createHoleArr():根据实例变量@mHoleArr绘制墙洞 50、viewDrawStandardFrame(view):视图绘制墙体标准边框 51、viewDrawEntityFrame(view):视图绘制墙体实际边框 viewDrawEntityHole(view):视图绘制实际墙洞
|