Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

constructionPlane problem

3 REPLIES 3
Reply
Message 1 of 4
brad.bylls
181 Views, 3 Replies

constructionPlane problem

In my add-in script I have created two construction planes to do some mirroring.

    planes = newComp.constructionPlanes
    constPlane = newComp.yZConstructionPlane
    planeInput = planes.createInput()
    offsetDistance = adsk.core.ValueInput.createByReal(0)
    planeInput.setByOffset(constPlane, offsetDistance)
    yzPlane = planes.add(planeInput)

After the mirroring is done I try:

    yzPlane.isVisible = False

and I get an exception error that says "can't set attribute".

I have also tried:

    constPlanes.isVisible = False

and get the same exception error.

IntelliSense shows "isVisible" is available for yzPlane and constPlane

Brad Bylls
3 REPLIES 3
Message 2 of 4
kandennti
in reply to: brad.bylls
Message 3 of 4
brad.bylls
in reply to: kandennti

Ok
Then how do you make them invisible?
Brad Bylls
Message 4 of 4
MichaelT_123
in reply to: brad.bylls

Hi Mr BradBylls,

 

This seems to be the old trap. Consider familiarising yourself with https://forums.autodesk.com/t5/fusion-360-api-and-scripts/show-hide-jointorigin/m-p/9839486#M11771 

and check isLightBulbOn. Who knows, it might work.

 

Regards

MichaelT

 

MichaelT

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report