JA_JERRY 发表于 2005-6-14 21:53:00

请问:如何旋转AcDb2dPolyline类型的实体

如题,


我在编程序时遇到对一个AcDb2dPolyline实体进行旋转地情况,可是transformBy函数不能用,有哪位高手做过相关的工作烦劳指点菜鸟一下,谢谢

王咣生 发表于 2005-6-14 22:52:00

reply

参考:


<A href="http://www.cadhelp.net/bbs/dispbbs.asp?boardID=10&amp;ID=327&amp;page=1" target="_blank" >http://www.cadhelp.net/bbs/dispbbs.asp?boardID=10&amp;ID=327&amp;page=1</A>

JA_JERRY 发表于 2005-6-14 23:36:00

那个函数我也有,不过transformBy()函数只适合于<A href="mk:@MSITStore:C:\ObjectARX%202002\docs\arxref.chm::/AcDb/AcDbCircle/AcDbCircle.htm" target="_blank" ><FONT color=#000000>AcDbCircle</FONT></A>, <A href="mk:@MSITStore:C:\ObjectARX%202002\docs\arxref.chm::/AcDb/AcDbLine/AcDbLine.htm" target="_blank" ><FONT color=#000000>AcDbLine</FONT></A>, <A href="mk:@MSITStore:C:\ObjectARX%202002\docs\arxref.chm::/AcDb/AcDbArc/AcDbArc.htm" target="_blank" ><FONT color=#000000>AcDbArc</FONT></A>, <A href="mk:@MSITStore:C:\ObjectARX%202002\docs\arxref.chm::/AcDb/AcDb2dPolyline/AcDb2dPolyline.htm" target="_blank" ><FONT color=#000000>AcDb2dPolyline</FONT></A>外的实体类型的操作下面是对这个函数的帮助文档


This function provides a means by which AutoCAD and ObjectARX applications can ask the entity to apply a transformation matrix (xform) to itself.


Each entity class must implement this function, so restrictions on what types of transformations are supported are up to the implementor of the entity class. The AutoCAD built-in entity classes for entity types that existed before R13 (that is, all the classes listed in the header file dbents.h such as <A href="mk:@MSITStore:C:\ObjectARX%202002\docs\arxref.chm::/AcDb/AcDbCircle/AcDbCircle.htm" target="_blank" ><FONT color=#000000>AcDbCircle</FONT></A>, <A href="mk:@MSITStore:C:\ObjectARX%202002\docs\arxref.chm::/AcDb/AcDbLine/AcDbLine.htm" target="_blank" ><FONT color=#000000>AcDbLine</FONT></A>, <A href="mk:@MSITStore:C:\ObjectARX%202002\docs\arxref.chm::/AcDb/AcDbArc/AcDbArc.htm" target="_blank" ><FONT color=#000000>AcDbArc</FONT></A>, <A href="mk:@MSITStore:C:\ObjectARX%202002\docs\arxref.chm::/AcDb/AcDb2dPolyline/AcDb2dPolyline.htm" target="_blank" ><FONT color=#000000>AcDb2dPolyline</FONT></A>, etc.) require that the transformation matrix represent a uniformly scaling orthogonal transformation (if it is not, then Acad::eCannotScaleNonUniformly will be returned). Other AutoCAD built-in classes have no restrictions.


怎么办,里面说了这四种类型的实体都不行,请问我改怎么做,望高手指点
页: [1]
查看完整版本: 请问:如何旋转AcDb2dPolyline类型的实体