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: 

Consumed work plane in Sketch3D

5 REPLIES 5
Reply
Message 1 of 6
ALink
431 Views, 5 Replies

Consumed work plane in Sketch3D

I use AddByNormalToCurve metod to create a work plane in a sketch 3D.
Is it possible to make new workplane object to be consumed by the parent Sketch3D (Workplane.Consumed = True) as it is possible in UI in Edit mode ?

Thanks in advance
ALink

My sample code in IV 2008:

Public Sub WorkPlane_Test()

'reference to the transient geometry
Dim oTG As TransientGeometry
Set oTG = ThisApplication.TransientGeometry

'reference to the component definition
Dim oCompDef As PartComponentDefinition
Set oCompDef = GetSelectedPartComponent(ThisApplication.ActiveDocument)

'reference to the Sketch3D
Dim oSketch3d As Sketch3D
Set oSketch3d = oCompDef.Sketches3D.Add

'Create a 3D sketch line
Dim oLine3d As SketchLine3D
Set oLine3d = oSketch3d.SketchLines3D.AddByTwoPoints( _
oTG.CreatePoint(0.5, 0.5, 0), oTG.CreatePoint(1, 2, 3))

'Create a work plane at the start point of the line
Dim WPlane As WorkPlane
Set WPlane = oCompDef.WorkPlanes.AddByNormalToCurve( _
oLine3d, _
oLine3d.StartSketchPoint, _
False)

MsgBox WPlane.Consumed

End Sub
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: ALink

No, this is not currently supported in the API. Work features can only be
created at the first level.

Sanjay-
Message 3 of 6
ALink
in reply to: ALink

Sanjay,
thanks.
Message 4 of 6
Ktelang
in reply to: ALink

Is it supported in 2013 API

------------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------
Message 5 of 6
ekinsb
in reply to: ALink

Sorry, but this is still not available in Inventor 2013 or 2014.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 6 of 6
Ktelang
in reply to: ekinsb

Thanks for the reply Brian

------------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------

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

Post to forums  

Autodesk Design & Make Report