Dimension Settings

Dimension Settings

Anonymous
Not applicable
741 Views
7 Replies
Message 1 of 8

Dimension Settings

Anonymous
Not applicable

 I've developed a LISP routine that auto dimensions the width of right of way for pipeline projects. However, I'm having some trouble getting dimensions to display as preferred. The text will generate at the angle of the sheet window (cyan line) but the landing lines are staying horizontal with the world UCS. Any idea what setting controls the landing line? I've used Lee Mac's dump function to understand what properties are associated. Right now, "Rotation" is set to 0.0 & "Text Rotation" is at the angle of my sheet window.

 

Any suggestions?

 

Dimension Leader.PNG

0 Likes
742 Views
7 Replies
Replies (7)
Message 2 of 8

ВeekeeCZ
Consultant
Consultant

Try Dimtih?

 

(setpropertyvalue (car (entsel)) "Dimtih" 0) ;0/1

0 Likes
Message 3 of 8

Anonymous
Not applicable

That didn't do it. Were you attempting to change the text position?

0 Likes
Message 4 of 8

ВeekeeCZ
Consultant
Consultant

Sorry, I was wrong. Don't think you gonna find anything.

Obvious question, why don't you rotate UCS during the routine run? Sure, it would a bit slower, but...

0 Likes
Message 5 of 8

Anonymous
Not applicable

I've done that and the landing line still displays as if I hadn't.

0 Likes
Message 6 of 8

CodeDing
Advisor
Advisor

@Anonymous,

 

Maybe remove your leader all together, this should remove the leader portion that is irking you.

image.png

Just my attempt at it.. Hope this helps.

 

Best,

~DD

0 Likes
Message 7 of 8

Anonymous
Not applicable

I'm not wanting to get rid of the landing line. I want it to be aligned with the text. 

0 Likes
Message 8 of 8

CodeDing
Advisor
Advisor

@Anonymous,

 

Looks like it can be done with AcitveX. Here are 3 good resources which provide insight to the code. I've not used it so I can't provide a practical example.

 

Source 1 - Autodesk knowledge network. Inputs / outputs

Source 2 - AutoCAD forum answered question. Shows VBA implementation.

Source 3 - The swamp. Lee mac provides a code in one of the first comments that shows it being used with LISP. (vla-setdoglegdirection...)

 

Hope these get you on the right path!

 

Best,

~DD