constructionPlane problem

constructionPlane problem

brad.bylls
Collaborator Collaborator
465 Views
3 Replies
Message 1 of 4

constructionPlane problem

brad.bylls
Collaborator
Collaborator

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
0 Likes
466 Views
3 Replies
Replies (3)
Message 3 of 4

brad.bylls
Collaborator
Collaborator
Ok
Then how do you make them invisible?
Brad Bylls
0 Likes
Message 4 of 4

MichaelT_123
Advisor
Advisor

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