Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX8.5 Iterate Dimensions Until Condition Is Met. Journal: "Invalid attempt to load library&quot

Status
Not open for further replies.

Dikuza

Aerospace
Jan 18, 2017
35
Hello, I'm wondering if there's a way to iterate a specific dimension through some given range, until a user-defined condition is met?
For example, I would like to iterate the length of a line in one of my sketches until a specified distance is measured between two bodies.

If this is not possible, is there a way to iterate the dimension, and simply report (spreadsheet perhaps) the resultant distance?

Obviously my first thought was a Journal, however I'm actually trying to measure the distance between two bodies in Motion Simulation at the end of the solved animation, so this might complicate a Journal (don't have much coding experience). Plus, whenever I try to run a Journal I get a "Invalid attempt to load library." I have .NET v4 installed, any suggestion to fix this?

Any thoughts much appreciated, thanks!
 
Replies continue below

Recommended for you

Yes. :)

This is exactly what the Optimization command is for. Works like a charm.

Create an associative Distance Measurement feature between the two bodies to start.

Choose the expression from that Distance Measurement as the "Objective" in the optimization and give it the desired distance as a "Target Value".

Choose the expression driving the length of the line within your sketch as a "Variable" in the optimization, and give it a range that you know includes the desire end state.

And then turn it loose with the default settings. It will update the model several times, and likely converge quite quickly on your desired objective.

Can you give that a try?

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)
 
Taylor,

That sounds perfect! Is this the same the topology optimization? Unfortunately I don't believe we have a license to this feature, do you know what license it is included in? Thanks!
 
Any other alternative than the Optimization command, which I do not have a license to? Someone has to have written a Journal to iterate a dimension through some range until a specific condition is met?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor