Error on Sweep Feature VBA, Inventor

Error on Sweep Feature VBA, Inventor

Anonymous
Not applicable
376 Views
2 Replies
Message 1 of 3

Error on Sweep Feature VBA, Inventor

Anonymous
Not applicable

there is code, Is anybody know how to fix it?
Where is the place I can learn the VBA in Inventor?

 

 

Thank you!

0 Likes
377 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor

@Anonymous wrote:

there is code, Is anybody know how to fix it?

can you upload it as text?
Where is the place I can learn the VBA in Inventor?

In the programming help file in Inventor.

bradeneuropeArthur_0-1614675612569.png

 

 

Thank you!


 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 3

_dscholtes_
Advocate
Advocate

You need to create a sweep definition first, in order to add a sweep.

This is an excerpt from an article on Manufacturing DevBlog:

Dim oSweepDef As SweepDefinition
Set oSweepDef = oCompDef.Features.SweepFeatures.CreateSweepDefinition( _
        kPathSweepType, oProfile, oPathNew, kSurfaceOperation)
  
Dim oSweepOne As SweepFeature
Set oSweepOne = oCompDef.Features.SweepFeatures.Add(oSweepDef)

 

I recently wrote code creating a sweep and used Google to find me some posts / blog articles.

Never bookmarked them, because I got it working.

0 Likes