Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic 'Measure.Extents' snippet and 'Move Face'

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
csmac2004
1017 Views, 3 Replies

iLogic 'Measure.Extents' snippet and 'Move Face'

We use the snippets from iLogic on all of our parts to measure the length, width or height of our parts. However, we have noticed that when a 'Move Face' operation or a 'Replace Face' operation is used, the length measured does not seem to take into account the Move/Replace operations.

 

Has anyone encountered this before?

 

And, does this make sense? Are the Move/Replace operations different than other features like Extrude/Revolve? Is there something "ghost-like" about them??? 🙂 The edges work fine on the drawing side, so I'm not sure what is different. Maybe it is the iLogic snippet?

 

In regards to it being the snippet, is there another code I can use that doesn't require specific feature or part information built in?

 

Thanks!

 

 

Scott MacDonald
Inventor 2013 Product Design Suite
Vault Professional 2013
Windows7 x64
Autodesk Inventor Certified Professional
3 REPLIES 3
Message 2 of 4
MjDeck
in reply to: csmac2004

The Measure.Extents functions should take all features into account.  But the part has to be up to date if you want an accurate measure.  You should have the statement:
InventorVb.DocumentUpdate()
at the top of your rule, or right before using the Measure.Extents functions.
Also, are you sure the rule is running?  How do you trigger the rule?


Mike Deck
Software Developer
Autodesk, Inc.

Message 3 of 4
csmac2004
in reply to: MjDeck

Mike,

 

That update code was the key! The routine was running (set to run on save or a Parameter change), and I had tried running it myself manually with no success.

 

However, I put in the InventorVb.DocumentUpdate() line and it works like a charm.

 

Out of curiosity, though, what is it updating? The update icon (lightning bolt) wasn't active, so what does this update?

 

Regardless, though, it works now so thank you very much.

 

 

Scott MacDonald
Inventor 2013 Product Design Suite
Vault Professional 2013
Windows7 x64
Autodesk Inventor Certified Professional
Message 4 of 4
MjDeck
in reply to: csmac2004

The function is updating the part features and geometry, the same as the lighting bolt icon does.  The icon might not be active after you change a parameter and the entire operation finishes.  But at the particular time when the rule runs (during that overall operation), the part is not guaranteed to be up to date.


Mike Deck
Software Developer
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report