Controling Text Tags and Leaders programmatically

samernajjar
Contributor

Controling Text Tags and Leaders programmatically

samernajjar
Contributor
Contributor

Is there a way to control the leaders of item tags via .net or lisp?

How can I select and/or iterate for a specific tag present on an item?

 

I was able to invoke the "addTextAtPoint" lisp command from within .net but I couldn't find any way to access the leader options or to check if the tag is already applied to the item.

 

Thanks,

Sam

0 Likes
Reply
577 Views
3 Replies
Replies (3)

moogalm
Autodesk Support
Autodesk Support

I'm not expert on Fabrication API,

 

I would like to help you, I have sent an email with your queries to fabrication API development team.

 

I will keep you posted.

0 Likes

moogalm
Autodesk Support
Autodesk Support

There is a method exposed to LISP called MoveMapText(SSet TextType Offset) you pass in parameters for Selection of objects, Text Type, and Offset

The Text Types are
1 = Item Number
2 = Size
4 = Elevation Text
8 = Alias Text
16 = Set Information
32 = Length Dimension
64 = Custom Report Text
The Offset is a Point3D and its an offset from the existing position which you can get with GetTextPos(ename TextType) and returns a 3Dpoint.

There is no automation for Leader positions but using ARX (maybe .net) you could get the GRIP points for the object and try and work out it any are for the leader.

For gripData, you can derive from GripOverrule.

http://adndevblog.typepad.com/autocad/2012/11/remove-insertion-grip-point-using-overrule.html

0 Likes

dyoung
Advocate
Advocate

@Anonymous wrote:

 

I was able to invoke the "addTextAtPoint" lisp command from within .net but I couldn't find any way to access the leader options or to check if the tag is already applied to the item.

 

Thanks,

Sam


I don't know of any way to grammatically control the leader/grip of a CADmep annotation in Lisp or .Net. If you're really good at ARX, you might be able to dig in deep enough to do it but you'd likely have to write the functionality yourself.

Darren J. Young
http://www.darrenjyoung.com/
https://www.linkedin.com/in/darrenjyoung/
0 Likes