Jump to content

Can CAD do maths


AJSmith

Recommended Posts

I have a set of standard layout for traffic management (lane closures and such) we have to put on a location ref for each sign so the guys can install the signs in the right location.

 

As they are standard layout they all follow a pattern so get tedious writing out these ref's for each sign

 

If I was to enter a start ref can CAD work out what the others should be?

Link to comment
Share on other sites

It will be easier for someone to answer if you could give, an example, maybe a dwg to show what you are after, and how you do it now, so we can see the math.

Link to comment
Share on other sites

so building on this I want to have the data in a nice block but hit a snag is their a way of putting attributes into a table so they can be edited from the block properties?

Link to comment
Share on other sites

AAH So it's you that is responsible for all this !!! Forgive me but this just looks like a standard issue drawing. Does this need reproducing for each individual case? following the actual shape of the road. Or is it the distances and quantities of items that you want to be able to control? I'm not sure if I'll be able to help because full Autocad has a different set of tools for dealing with data extraction and tables, just trying to get a clear picture of what it is that is so time consuming.

Link to comment
Share on other sites

What is it that you are wanting AutoCAD to calculate? Do want to input the mileage "3.1" and let AutoCAD automatically insert all of the subsequent ones?

Link to comment
Share on other sites

Using lisp you can set base point and as you add a block compare say X distance and use this as the attribute value you display, like wise the text displaying the distance, do you know much about lisp ?

;Simple example
(setq basept (getpoint "Pick base point")) ; note nothing appears on screen this remains a global variable
(defun insblkdist ( / pt2 dist)
(setq pt2 (getpoint "Pick sign pt "))
(setq dist (rtos (distance pt2 basepoint) 2 0)) ; this make distance a string for attribute
; insert block now
)

 

I would be more inclined to make the block insertion distance automated as well so enter 200 and block is placed 200 away from base point and just repeat for as many as required.

Link to comment
Share on other sites

I've attached a copy of your drawing with an embedded macro that will automatically enter your text. It requires a start mileage and the mileage of the last cone. To run the macro, on the Ribbon go to the Manage tab > Applications panel > Run VBA Macro, select the macro and click the Run button.

lane 1-macro.dwg

Edited by Tyke
Link to comment
Share on other sites

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