CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.099.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage 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.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedAssign a variable instead a numerical value

 Post Reply Post Reply
Author
Silvia_sds View Drop Down
Newbie
Newbie


Joined: 30.May.2013
Location: Italy
Using: AutoCAD2013
Status: Offline
Points: 2
Direct Link To This Post 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
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2123
Direct Link To This Post 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).
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 686
Direct Link To This Post 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)
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post 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?
Back to Top
heinsite View Drop Down
Senior Member
Senior Member


Joined: 05.Feb.2009
Location: United States
Using: AutoCAD 2014
Status: Offline
Points: 640
Direct Link To This Post 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
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 686
Direct Link To This Post 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.
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,066 seconds.