VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

length of line - associate

2 REPLIES 2
Reply
Message 1 of 3
enescil
363 Views, 2 Replies

length of line - associate

Hi,

I am a begginer in VBA. 

I wrote a VBA that put text/field of lengths of lines and arcs (like in dwg attached). I need that these texts are associate with respective lines. For example, If I stretch lines, rotate lines, text must change position (middle of line) and slope.

 

I read something about reactor in Lisp, but I am not finding in VBA.

I have no knoledge in LISP.

I saw this lisp below and I think that is possible do it in VBA.

http://www.lee-mac.com/dtcurve.html

 

Anyone can suggest me parts of codes to study how to do this?

 

 

 

Sorry my English.

 

Claudio 

2 REPLIES 2
Message 2 of 3
truss_85
in reply to: enescil

Hi,

 

I suggest you to use geometric constraints. In your case _GcCoincident and _GcParallel will do what you want. But this commands not accessible from vba, you must use "sendcommand" from vba to achive.

Message 3 of 3
enescil
in reply to: enescil

Thanks Truss,

I will study more.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost