Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Syntax for Extrude Surface

1 REPLY 1
SOLVED
Reply
Message 1 of 2
TatianaR
265 Views, 1 Reply

Syntax for Extrude Surface

Hello
Somebody knows syntax for Extrude Surface?
Realy need
Best regards
Tatiana

1 REPLY 1
Message 2 of 2
RodrigoEiras
in reply to: TatianaR

Hi Tatiana,

 

I have been taking a look and it seems the syntax is the same as for solid extrusion, but the difference is done when defining the profile used for the extrusion.

 

It seems you need to use the Method below when defining the profile.

 

Profiles.AddForSurface( [Curve] As Variant ) As Profile

 

I also found an example in API help

 

 ' Create a profile for the first extrude.
    Dim oProfileOne As Profile
    Set oProfileOne = oSketch.Profiles.AddForSurface(oLineOne)

    ' Create an surface extrusion 2 cm thick.
    Dim oExtrudeDef As ExtrudeDefinition
    Set oExtrudeDef = oCompDef.Features.ExtrudeFeatures.CreateExtrudeDefinition(oProfileOne, kSurfaceOperation)
    Call oExtrudeDef.SetDistanceExtent(2, kNegativeExtentDirection)
    Dim oExtrudeOne As ExtrudeFeature
    Set oExtrudeOne = oCompDef.Features.ExtrudeFeatures.Add(oExtrudeDef)

 

 

I hope this helps

 

 

Best regards

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report