Problem writing script code

gpq
Enthusiast

Problem writing script code

gpq
Enthusiast
Enthusiast

Hello,

I have a strange situation.

When editing script i write ( like in the sample ) lin1.   , i cannot see all the line's object properties.

I make some mistake but don't understand where.

Thanks in advance.

 

 

 

try:
                curveSel = ui.selectEntity("Select first Line to trim ", "SketchCurves")
            except:
                break                    
            if curveSel:
                curve = adsk.fusion.SketchCurve.cast(curveSel.entity)
                if type(curve) is adsk.fusion.SketchLine:
                    lin1= adsk.fusion.SketchLine.cast(curve)

                    lin1.geo........       <-------------------------------------------------------------------------( here not propose all propeties of object line )
                    lin1_3D =lin1.geometry.asInfiniteLine()
                else:
                    return
            else:
                return None

0 Likes
Reply
Accepted solutions (1)
628 Views
4 Replies
Replies (4)

marshaltu
Autodesk
Autodesk

Hello,

 

I gave a quick check in my machine. It seemed to work well. It would be good if you can share more information as below:

 

1. Which versions of OS and Fusion 360?

2. Is it reproducible if you restart Fusion 360 and Spyder? 

3. Is it specific to some script? If yes, please share the script.

 

Thanks,

Marshal

 

codehint.png



Marshal Tu
Fusion Developer
>
0 Likes

gpq
Enthusiast
Enthusiast

Hello,

I cannot see the properties that you can see.

createin assembly context

ednsketchpoint

geometry

startsketcpoint....

.....

....

Look at mine image.

Thanks.SpiderCattura.JPGfusionCattura.JPGImmagine.pngOSCattura.JPG

 

 

0 Likes

gpq
Enthusiast
Enthusiast

Sorry,

The problem is always present in any script and also if I restart fusion and spider. spider is 2.3.2

SpiderCattura.JPG

0 Likes

marshaltu
Autodesk
Autodesk
Accepted solution

Hello,

 

It was strange. Please try to do clean uninstall/reinstall Fusion 360 and see if it can solve the issue or not?

 

https://knowledge.autodesk.com/support/fusion-360/troubleshooting/caas/sfdcarticles/sfdcarticles/How...

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes