karl 发表于 2006-6-17 10:48:00

请教一个问题

请教各位:getEntity是拾取实体,能用来拾取线吗?如果不能,需要用什么命令呀?谢谢!!

songzhi 发表于 2006-6-21 20:06:00

<P class=h2-pop>All Drawing Objects
<P class=body-pop>All of these objects can be defined as an AcadEntity object.
<TABLE cellSpacing=1 cellPadding=4 border=0>
<TBODY>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_3dface_object.htm" target="_blank" >3DFace</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_3dpoly_object.htm" target="_blank" >3DPolyline </A>&nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_3dsolid_object.htm" target="_blank" >3DSolid</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_arc_object.htm" target="_blank" >Arc</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_attribute_object.htm" target="_blank" >Attribute</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_attributeref_object.htm" target="_blank" >AttributeReference</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_blockref_object.htm" target="_blank" >BlockRef</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_circle_object.htm" target="_blank" >Circle</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_dim3pointangular_object.htm" target="_blank" >Dim3PointAngular</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_dimaligned_object.htm" target="_blank" >DimAligned</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_dimangular_object.htm" target="_blank" >DimAngular</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_dimdiametric_object.htm" target="_blank" >DimDiametric</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_dimordinate_object.htm" target="_blank" >DimOrdinate</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_dimradial_object.htm" target="_blank" >DimRadial</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_dimrotated_object.htm" target="_blank" >DimRotated</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_ellipse_object.htm" target="_blank" >Ellipse</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_externalreference_object.htm" target="_blank" >ExternalReference</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_hatch_object.htm" target="_blank" >Hatch</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_leader_object.htm" target="_blank" >Leader</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_lightweightpolyline_object.htm" target="_blank" >LightweightPolyline</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_line_object.htm" target="_blank" >Line</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_minsertblock_object.htm" target="_blank" >MInsertBlock</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_mline_object.htm" target="_blank" >MLine</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_mtext_object.htm" target="_blank" >MText</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_point_object.htm" target="_blank" >Point</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_polyfacemesh_object.htm" target="_blank" >PolyfaceMesh</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_polygonmesh_object.htm" target="_blank" >PolygonMesh</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_polyline_object.htm" target="_blank" >Polyline</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_pviewport_object.htm" target="_blank" >PViewport</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_raster_object.htm" target="_blank" >Raster</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_ray_object.htm" target="_blank" >Ray</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_region_object.htm" target="_blank" >Region</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_shape_object.htm" target="_blank" >Shape</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_solid_object.htm" target="_blank" >Solid</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_spline_object.htm" target="_blank" >Spline</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_text_object.htm" target="_blank" >Text</A> &nbsp;</TD></TR>
<TR vAlign=top>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_tolerance_object.htm" target="_blank" >Tolerance</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_trace_object.htm" target="_blank" >Trace</A> &nbsp;</TD>
<TD><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/idh_xline_object.htm" target="_blank" >XLine&nbsp;</A></TD></TR></TBODY></TABLE></P>

<P>这里面似乎就有你要的东西。这些是帮助里的内容。要学会看帮助。</P>
页: [1]
查看完整版本: 请教一个问题