Jump to content

Looking for a text mathematics routine...(smartdraft)


Recommended Posts

Posted

At my previous engineering firm we had a set of cad tools called SmartDraft. There is one thing that I really miss about it, and it was the text mathematics routine.

 

It would allow you to select a function, then select a text entity with a number, then give you the option to place that text on screen or replace an existing text entity. If you are reading this, I hope you are getting what I am trying to say.

 

I only know the most basic of lisp. If it has more than 12 lines I just plain get lost. Does anyone have something similar to what I am talking about?

 

I know a lot of the people who read this board are also on Swampthing. I am also going to post it over there.

 

TIA

Posted

eg Area of a circle based on text = rad you need to choose parameter ANS somehow

 

(if (= ans "circarea")
(progn
(setq tp1 (entsel "\nSelect text : "))
(setq tpp1 (entget (car tp1)))
(setq rad (atof (cdr (assoc 1 tpp1))))
(setq area (* 3.1415936 rad))
)
)
(princ area)

 

then you can do what you want add text change text etc

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...