ConstructionPlaneInput usage example

ConstructionPlaneInput usage example

Anonymous
Not applicable
509 Views
2 Replies
Message 1 of 3

ConstructionPlaneInput usage example

Anonymous
Not applicable
class ConstructionPlaneInput(Base):
    """A ConstructionPlaneInput is a throwaway object used to create a ConstructionPlane 
The usage pattern is:
a. create a ConstructionPlaneInput (ConstructionPlanes.CreateInput)
b. call one of the member functions to specify how the ConstructionPlane is created
c. create the ConstructionPlane (call ConstructionPlanes.Add)
d. stop referencing the ConstructionPlaneInput (so it gets deleted)."""

I found this in the fusion.py, i tryed than following

 

 consPlaneInput = adsk.fusion.ConstructionPlanes.createInput
 consPlaneInput.setByOffset(xyPlane,adsk.core.ValueInput.createByReal(10))

 

which fails telling me consPlaneInput has no member setByOffset, but that method is defined in funsion.py line 5790 

any idea what could be going on .

 

 

 

 

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

Anonymous
Not applicable

One more question, is there a way to get propper debug output, that is not cut by the Window that it is in and that is maybe selectable and pasteable.

0 Likes
Message 3 of 3

frankzhang
Alumni
Alumni

Hello, regarding the usage, we recommand that you take a look at the "Fusion 360 API Reference Manual" which can be accedded from this link: 

http://help.autodesk.com/view/NINVFUS/ENU/?guid=GUID-A92A4B10-3781-4925-94C6-47DA85A4F65A

 

Specifically for ConstructionPlaneInput, look at this:

http://help.autodesk.com/view/NINVFUS/ENU/?guid=GUID-93edada4-bd64-4af5-977a-99f2f1ccd930

 

Here is also a sample that you can reference:

Construction Plane API Sample

0 Likes