[VBA] Inv2012 + Surface / Extend

[VBA] Inv2012 + Surface / Extend

Anonymous
Not applicable
872 Views
4 Replies
Message 1 of 5

[VBA] Inv2012 + Surface / Extend

Anonymous
Not applicable

Hi,

how i can create with vba a surface Extend

 

take a look picture

 

thx for help

 

Marioextend.jpg

0 Likes
Accepted solutions (1)
873 Views
4 Replies
Replies (4)
Message 2 of 5

philippe.leefsma
Alumni
Alumni
Accepted solution

Hi Mario,

 

That would be logically from the "PartComponentDefinition.Features.ExtendFeatures", however this object doesn't expose any "Add" method, which mean ExtendFeature cannot be created yet from the API.

 

Sorry for the bad news.

 

Regards,

Philippe.

 

Philippe Leefsma
Developer Consultant
Developer Technical Services
Global Subscription & Support
 

Autodesk EMEA

 

www.autodesk.com/joinadn



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi,

 

sorry for posting the same question twice (http://forums.autodesk.com/t5/Autodesk-Inventor/Inventor-API-PartFeature-question/td-p/3931800). Did the situation improve in version 2013 or 2014?

 

Another question in the same context:

When I use the transcripting-tool and do the extension, I see the following code in the .tf-file:

 

ActiveDocument.Execute("Document1","Create Extend","Edges=[0 T::3 P::[0x40000000 0x4031ffc9 0x66667000 0x3ecc5666 0xbbbbbbbd 0x400c1ea4 ] B::[16],];Bodies=[Document1.PmDCSegment.41,];Edge2Body=[0,];ExtendType=1;TerminationType=1;Distance=10;AllowRetry=1;AllowIgnore=0;")

 

Shouldn't it be possible to use this line of code in VB?

When I try to do this, the code doesn't work and drag & drop of the .tf file into the Inventor window doesn't work either. Do you have an idea why?

 

Thanks a lot, 

Stefan

 

0 Likes
Message 4 of 5

philippe.leefsma
Alumni
Alumni

The transcript code cannot be run in VB or any other language directly. Only the existing methods can be invoked from the API. Unfortunately ExtendFeatures cannot be created yet from API.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 5 of 5

Anonymous
Not applicable

Hi, 

 

I hope reviving an old question isn't a problem. I'm trying to do this in 2017 Inventor, and it doesn't seem to have been resolved. Can anyone confirm?

 

Thanks

0 Likes