Request to Modify the lisp (Delete Overwrite Dimension & (X and Y) Dimension Text Are Above

Request to Modify the lisp (Delete Overwrite Dimension & (X and Y) Dimension Text Are Above

Gaganpatel
Collaborator Collaborator
581 Views
11 Replies
Message 1 of 12

Request to Modify the lisp (Delete Overwrite Dimension & (X and Y) Dimension Text Are Above

Gaganpatel
Collaborator
Collaborator

Dear Sir,

 

Request to modify the lisp delete overwrite dimension and (X & Y ) dimension text are above.

 

Please see the Example Drawing & lisp programming.

 

Gaganpatel_0-1697354853299.png

 

0 Likes
582 Views
11 Replies
Replies (11)
Message 2 of 12

Sea-Haven
Mentor
Mentor

You can move the dimension text after you make it. A lot of code to wade through as need 4 directions. 

 

 

(setq obj (vlax-ename->vla-object (entlast)))
(setq tpos (mapcar '+ (vlax-get obj 'TextPosition) (list 125.0 (- 120.0) 0.0)))
(vlax-put obj 'TextPosition tpos)

 

 Hopefully this example shows how to move the dim text. The (entlast) is your dim.

0 Likes
Message 3 of 12

Gaganpatel
Collaborator
Collaborator

Dear Sir,

 

 I don't auto lisp programming please help complete the programming.

 

0 Likes
Message 4 of 12

Kent1Cooper
Consultant
Consultant

You can get the text above the lines by simply defining the Dimension Style for that:

Kent1Cooper_0-1697421404010.png

And given a Dimension Style defined that way, the QDIM command with the Ordinate option does pretty well at this without a routine, and without duplicating Dimensions [here used twice, once for each direction]:

Kent1Cooper_0-1697421605319.png

 

Kent Cooper, AIA
0 Likes
Message 5 of 12

Gaganpatel
Collaborator
Collaborator

Dear Sir,

Thanks for reply.

Please help complete the programming.

0 Likes
Message 6 of 12

Sea-Haven
Mentor
Mentor

Please look at Kent1Cooper solution the best answer.

0 Likes
Message 7 of 12

Gaganpatel
Collaborator
Collaborator

 

Dear Sir,

 

Yes this programming is best.

Can you please modify my post programming. 

Please help me Sir.

0 Likes
Message 8 of 12

Gaganpatel
Collaborator
Collaborator

Dear Sir,

 

Please help me any body.

0 Likes
Message 9 of 12

Kent1Cooper
Consultant
Consultant

If the suggestion in Message 4 does not do what you want, describe in detail how you want it to be different.

Kent Cooper, AIA
0 Likes
Message 10 of 12

Gaganpatel
Collaborator
Collaborator

Dear Sir,

 

Thanks for replay .

I want to attached lisp programming modify please.

1) All dimension text are above required.

2) Delete Overwrite dimension .

Please see the attached example file

Gaganpatel_0-1697817180961.png

 

0 Likes
Message 11 of 12

Kent1Cooper
Consultant
Consultant

You haven't really answered my request, but I find it may not matter anyway.  Unfortunately, QDIM doesn't dimension to Block insertion points.  In my earlier image, I had drawn Circles, and it will work with those.  If I Explode your Blocks and use the Circles, and define a Dimension Style appropriately, I get this with no custom routine and just four QDIM commands [including use of the datumPoint and Ordinate options]:

Kent1Cooper_0-1697823497799.png

except that the non-right-angle corners were Dimensioned in the results from the opposite sides, so I Erased two of the resulting Dimensions.

 

But I assume you're not going to want to Explode Blocks to do this....

Kent Cooper, AIA
0 Likes
Message 12 of 12

Gaganpatel
Collaborator
Collaborator

Dear Sir,

 

QDIM , ordinate dimension is best way.

Can you modify my post lisp programming as per requirement.

0 Likes