Jump to content

Recommended Posts

Posted

Hey guys!

 

I was wondering if anyone could help me with this -

 

I'm looking for a code, which could rewrite the dimension text with the same number + a diameter symbol in the front. A dimension is variable. In different words, i need an automatic straight-line diameter code.

 

It would be huge help for me!

Posted
Hey guys!

i need an automatic straight-line diameter code.

 

What is a that?

you mean this?

command: Dim

Dim: N

%%c

Select objects:

Posted

(command ''dim'' ''ver'' T22 T5 M5 '''') - this is the part of my function. The distance between points T22 and T5 is variable. So i need that my function automatically rewrite that variable distance with %%c in the front. :)

Posted
(command ''dim'' ''ver'' T22 T5 M5 '''') - this is the part of my function. The distance between points T22 and T5 is variable. So i need that my function automatically rewrite that variable distance with %%c in the front. :)

 

 
(command ''dim'' ''ver'' T22 T5 M5 '''')
(vla-put-textoverride (vlax-ename->vla-object (entlast))
  (strcat "%%C <>")) 

 

dont foget to include (vl-load-com) elsewhere in your code

Posted

Yes! That's exactly what i was looking for! Thank you alot!

Posted
Yes! That's exactly what i was looking for! Thank you alot!

 

Good for you. if there's anything else you need just holler

 

Cheers :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...