Automatic Placement of iFeature

Automatic Placement of iFeature

C_Haines_ENG
Collaborator Collaborator
255 Views
1 Reply
Message 1 of 2

Automatic Placement of iFeature

C_Haines_ENG
Collaborator
Collaborator

I have an iFeature which interacts with two different solids in a part file. They would place on points in Sketches named "CAMCONNECTOR".

 

The First selection is the point in the sketch. This is placed directly on the line between the two faces. 

The Secpond selection is the CAM connector Face, which would be the same face as the selected sketch.

The Third selection is the connecting panel, which will be the face directly beside the point. 

 

I would like to automate this so that It would iterate through each point in all sketches named "CAMCONNECTOR" or something similar and place each of these cam connectors. I usually have to place about 40-100 each time so automating this would be excellent. 

0 Likes
256 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Hi @C_Haines_ENG.  Automating the insertion of a custom iFeature into various model scenarios will likely be fairly complicated to get set-up.  Especially for someone trying to figure it out remotely, without knowing your unique design intent, unique product knowledge, and your specific CAD model data in front of us.  We may be able to point you in some of the right directions and help you understand some of the API related steps along the way, but I doubt one of us would be able to post a complete working automation solution with so little to work with.

I would start out by thoroughly reviewing the available online help pages for the API objects, properties, methods, & examples related to what you are trying to do.

There is actually an 'API Sample' (it is a VBA macro, not an iLogic rule) for inserting a 'standard' iFeature in a part (Link1, Link2), and an API Sample for inserting a 'table driven' iFeature in a part (Link3, Link4).  There are also a lot of API Objects involved, and most (if not all) of them have documentation within the online help area.

  • iFeature Object (Link1, Link2)
  • iFeatures Object (Link1, Link2)
  • iFeatureDefinition (Link1, Link2)
  • There are lots more...When you are one one of these online help pages for an API Object, just look along the left hand side of the web page for other similarly named objects under the:  Programming Interface > Inventor API Reference Manual > Objects area.
  • WCrihfield_0-1661443321452.png

     

 

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes