VBA, iLogic, code for Shrinkwrap Substitute, set Design View, Level of Detail, Remove Holes, Range, set range, .....

VBA, iLogic, code for Shrinkwrap Substitute, set Design View, Level of Detail, Remove Holes, Range, set range, .....

engilic
Advocate Advocate
868 Views
4 Replies
Message 1 of 5

VBA, iLogic, code for Shrinkwrap Substitute, set Design View, Level of Detail, Remove Holes, Range, set range, .....

engilic
Advocate
Advocate

Hi,

 

Is there a way to make a VBA or at least iLogic code to run Shrinkwrap Substitute, set up some settings, Design View, Level of Detail, Remove Holes, Range, set range, Remove Fillets, ..., Remove Chamfers, ..., ...?

 

Preferably not Sending Keys.

Have a lovely day.

0 Likes
Replies (4)
Message 2 of 5

dutt.thakar
Collaborator
Collaborator

@engilic 

 

Please check out below link for the time being, You can check the code and tweak it according to your requirement. There is a notepad file in this link which you can download and play around to get the things according to your requirement.

 

https://www.cadlinecommunity.co.uk/hc/en-us/articles/214383385-Inventor-iLogic-Shrink-wrap-Substitut...

 

Let me know if this will help you or not.

 

 

 

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
Message 3 of 5

engilic
Advocate
Advocate

Thank you @dutt.thakar ,

 

Will try it soon.

 

Have a lovely day.

0 Likes
Message 4 of 5

Liam.U
Contributor
Contributor

Hello, thank you, your solution works well. It can control the size of removing holes but do you know how to be able to control the size of the fillets & chamfers like shown in the shrinkwrap options box?

0 Likes
Message 5 of 5

A.Acheson
Mentor
Mentor

To add to @dutt.thakar post, here are a few links from the API help. Hopefully you can fine tune your code with these. If you need any help implementing just message back with the code. 

  1. Shrink wrap substitute in assembly API Sample
  2. DerivedAssemblyDefinition Object Methods and properties
  3. ShrinkwrapDefinition Object

Under the shrinkwrap object definition you will find all the properties inside that dialog box. 

Sample of properties available ShrinkwrapDefinition.RemoveChamfersStyle PropertyShrinkwrapDefinition.RemoveChamfersDistanceRange Property

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan