Is there anyway to automate the below process in frame generator/assemblies? The angle is rarely a whole number or to the closest 5. The tube is joined using donut elbows.
Solved! Go to Solution.
Solved by will_roe. Go to Solution.
I think might have an way of doing through the API (which I have no experience successfully using😅). I would love some feedback from someone with API experience.
So I noticed that after creating a miter the part has a custom iprop created "CUTDETAIL1" + "CUTDETAIL2" if it's mitered on both ends and it creates the miter around the origin point. So I'm assuming (please correct me if I'm wrong) it's possible to write something in the API that cycles through all occurrences creates the below sketch and extrusion to any part that has "CUTDETAIL1" + "CUTDETAIL2" or a half version if only "CUTDETAIL1" exists.
Hi @will_roe
Having just done a similar (easier) thing for the tube and pipe environment it can be certainly a complex task if your not used to the API. I would say I would be a relative beginner at creating sketches and extrusion via API so this is some advice from a fellow beginner.
My first question would be is this something that can be done in frame generator allready? If it can well are you reinventing the wheel? If it can't then you have yourself a nice project. Second question, are you looking to modify an existing frame generator feature or piggy back an existing feature to customize it further?
A few things that will be needed to be learned if starting from scratch.
If you haven't done so allready the API help has some samples for features and 2d sketches written in VBA. If you find something in there you may need I would suggest convert to ilogic environment and test the implement. Then extract that portion and add to your project code. Example block creation with extrude pocket.
Can't find what you're looking for? Ask the community or share your knowledge.