Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Navigation
- NX Design
- Forums
- Blogs
- Knowledge Bases
- Groups

- Siemens PLM Community
- NX Design
- NX Design Forum
- Expression Logic

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-10-2017 08:52 AM - edited 08-11-2017 06:49 AM

I am looking for a way using expression logic to limit a number of wedges assembled together based on the angle of each wedge and the total angle of the assembly of wedges.

In the attached file, I have an assembly of 8 wedges each with angle B. The total angle of all the wedges in the assembly is angle A. The limit of angle A is less than or equal to 120 degrees. Angle B could be 3 different angles. Wedges 3-8 are inserted based on a desired total of angle A, but cannot exceed 120 degrees. I would like to come up with a way based on this that as I am inserting wedges 3-8 either the expressions force another angle on a particular wedge so Angle A does not go over 120 degrees or if that is not possible, just forces the input to 0 so the wedge and subsequent wedges are forced off.

I know conditions can be set up to flag an expression that does not fit into the applied condtion as its defined, but this is not very obvious to the user changing the various wedges out in the assembly.

Hopefully this makes sense.

Thank you for any help anyone can provide.

Solved! Go to Solution.

- Tags:
- Expression

Labels:

10 REPLIES

Re: Expression Logic

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-10-2017 03:12 PM

The attached file is missing.

Scott

Re: Expression Logic

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-11-2017 06:49 AM

Added the file. Hopefully it stays there this time.

Re: Expression Logic

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-11-2017 09:48 AM

Hi @RKulchy,

Angle B could be 3 different angles

But are the wedges all the same angle at any one time?

Regards, Ben

Re: Expression Logic

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-11-2017 10:03 AM

No, they could be different. As an example, lets say the versions of angle B are 10, 20, 40. The setup could be 10, 10, 20, 40. Or all 8 could 10's. Or it could go something like 10, 20, 40, 20, 10.

I have also created an expression that sums the total angle of the 8 wedges thinking this may be part of the check in an expression or expressions to help do what I am looking for.

Re: Expression Logic

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-11-2017 11:51 AM

Re: Expression Logic

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-11-2017 12:12 PM

They are part family objects and I am just swapping in and out the ones I want to use.

Re: Expression Logic

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-17-2017 01:46 PM

Regards, Ben

Re: Expression Logic

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-17-2017 01:53 PM

I have not had anymore time to play around with this more. And as of right now we do not have PTS. I am trying to get the group that handles all of out NX licenses to get us a licenses for it, but its not high on thier list of things to do right now as we are in the middle of an upgrade and testing it. However, I thought PTS would be the better avenue for this as well.

I would definately be interested in seeing your non-PTS attempt at this. I am curious to see how you did the interpart expressions.

Thanks,

Randy

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-17-2017 02:02 PM

Open assembly2, unpack wedge-15 and use Replace Component to replace it with wedge-18. The last wedge-15 will become suppressed. Replace the remaining wedge-15's with wedge-18's and the second to last component will become suppressed. Not the best example and the constraint updates can be unpredictable, but you might get something out of it.

Regards, Ben

Follow Siemens PLM Software

© 2019 Siemens Product Lifecycle Management Software Inc