×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Using Expression to Control Line Length

Using Expression to Control Line Length

Using Expression to Control Line Length

(OP)
Hi guys,
I'm playing around with our template right now and want to use an expression to control the length of a line.  I can't get the line's length to update when I update the expression and was wondering if it isn't possbile to do.
When sketching on the sheet, I can get a line to update the way I want it to, but not with a line not within a sketch.

I attached an example.  Thanks in advance,
Chris

RE: Using Expression to Control Line Length

There is no support for parametric (expression-driven) curves when working in a Drawing.  You have to model those curves in Modeling and then create a Drawing of the model.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum:   http://www.plmworld.org/p/cm/ld/fid=209

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Using Expression to Control Line Length

The easiest, and best, way to do this is in a sketch.  If you draw a line in a sketch and use the expression to control the length that should work.  Also, keep in mind that when it comes to positioning the sketch you have three options.  The quickest is to use a constraint and "fix" the end point.  The Second way is to use a horizontal and vertical dimension to fix the line by referencing a datum.  The third way, and most useful, is to close the sketch without it being fully constrained.  Then right click the sketch and use the "Edit Position" methode to position the sketch.  This keeps the sketch together as if it were a block in autocad (if you have used that before).  You can use expressions to controll everything I have talked about except the "fixed" constraint.  Keep in mind that if you want your drawings to update correctly, then using the "edit position" option becomes very helpful.  You can constrain a sketch to dumb geometry, and then use "edit position" to move it into the correct placement.  
Hope this helps.

UG NX3/NX4/NX6
Vericut 5/6/7
AutoCAD LT

RE: Using Expression to Control Line Length

But the OP already said that he did NOT want to use a Sketch. Without using a Sketch, there is no way to do this in Drafting.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209

To an Engineer, the glass is twice as big as it needs to be.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources