
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the
rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
| Author |
Topic Search Topic Options
|
Silvia_sds
Newbie
Joined: 30.May.2013
Location: Italy
Using: AutoCAD2013
Status: Offline
Points: 2
|
Topic: Assign a variable instead a numerical value Posted: 30.May.2013 at 19:51 |
Hi everyone, I have a question about AutoCAD 2013: is it possible to assign a variable (for example to a line) instead a numerical value? So I'll be able to change it whenever I want without extend or trim lines. Thank you
|
 |
Vladimir Michl
Senior Member
Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2196
|
Posted: 31.May.2013 at 07:57 |
What is a "numerical value" of a line? Do you mean its length, or XData record, or some kind of a label?
For length, you can use AutoCAD parametric functions (see the Parametric ribbon).
|
|
|
 |
Kent Cooper
Senior Member
Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 687
|
Posted: 31.May.2013 at 14:24 |
I'm not quite sure I understand exactly what you mean, either, but is something like LENGTHEN with the Total option what you want to do? You could build a function that would feed a variable into that for the total length, and leave the User to select Lines they want to be that length:
(command "_.lengthen" "_total" YourVariableValue)
|
 |
CarlB
Senior Member
Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
|
Posted: 31.May.2013 at 22:33 |
|
If you did this, how would the changed variable know which end of the line to change, or if both?
|
 |
heinsite
Senior Member
Joined: 05.Feb.2009
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 640
|
Posted: 02.Jun.2013 at 09:32 |
|
With parametric constraints AutoCAD knows which direction a line was drawn so it will know which end to modify. In this case however what the OP is calling a variable would actually involve changing a constant (line length).
Dave.
|
|
Dave Hein, P.E. Hawaii District Engineer Kona International Airport AutoCAD Certified Professional Autodesk Expert Elite
|
 |
Kent Cooper
Senior Member
Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 687
|
Posted: 03.Jun.2013 at 15:02 |
CarlB wrote:
If you did this, how would the changed variable know which end of the line to change, or if both?
Lengthen with the Total option just moves the end nearer where you pick the object, leaving the other end in place. [I don't have a new-enough version to have constraints, which may affect that.] The variable would only be a number representing the desired length, though we still haven't heard from the OP about whether that's what is meant in their question.
|
 |