How to know the item number of surface bodies

How to know the item number of surface bodies

SandmanINV
Advocate Advocate
480 Views
4 Replies
Message 1 of 5

How to know the item number of surface bodies

SandmanINV
Advocate
Advocate

Hi everyone, 

I have a body, and i want to create hole on 1 surface like i click with blue hight light. 

I wonder, how to know the item number of each surface bodies from 1 body like this or more complicated. Now, i have to try by hand, by change number from 1 to .... and run to see that is what i want or not.

Thank you, 

Capture.PNG

 

 

 

0 Likes
481 Views
4 Replies
Replies (4)
Message 2 of 5

philip1009
Advisor
Advisor

Are you using Inventor 2019?  If so, then you have the ability to right-click on a surface and Assign a Name to either a face, line, or vertex(point), then these names can be referred to in iLogic code snippets:

 

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2019...

Message 3 of 5

SandmanINV
Advocate
Advocate

Thank you for your reply, 

Yes, I am using Inventor 2019. 

In my case, i create this body automatic by vb code. And now i want auto create holes on surface which clicked as my picture.

So, i want to know the number of each surface  without click to assign name or try by hand. Dose it has any rule numbering surfaces of one body ?

 

0 Likes
Message 4 of 5

philip1009
Advisor
Advisor

@SandmanINV wrote:

Thank you for your reply, 

Yes, I am using Inventor 2019. 

In my case, i create this body automatic by vb code. And now i want auto create holes on surface which clicked as my picture.

So, i want to know the number of each surface  without click to assign name or try by hand. Dose it has any rule numbering surfaces of one body ?

 


Gotcha, in that case, I'm not too familiar with the VB code for determining geometry.  If you know where the hole is supposed to go in relation to the origin, maybe make a work plane in place of the face and use that as a reference for the hole to start from, or there's a way to know the direction of the face from the appropriate origin plane and go from there.  I do know it's possible, I'm sure someone will come up with something clever for you.  Good luck.

0 Likes
Message 5 of 5

SandmanINV
Advocate
Advocate

Thank you for your reply, i think using Workplanes to reference hole is good way.

I hope someone have another advice. Thank you.

0 Likes