Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In the section "Code Hints" here:
http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-743C88FB-CA3F-44B0-B0B9-FCC378D0D782
it can be read, that casting can be used to enable VSC to make code hints. Can someone please explain how and when to use this methode? - I would like as many hints as possible.
In this minimal extrusion code:
import adsk.core, adsk.fusion app = adsk.core.Application.get() ui = app.userInterface doc = app.documents.add(adsk.core.DocumentTypes.FusionDesignDocumentType) design = app.activeProduct rootComp = design.rootComponent extrudes = rootComp.features.extrudeFeatures sketch = rootComp.sketches.add(rootComp.xYConstructionPlane) circles = sketch.sketchCurves.sketchCircles circle = circles.addByCenterRadius(adsk.core.Point3D.create(0, 0, 0), 5.0) profile = sketch.profiles.item(0) extrudes.addSimple(profile, adsk.core.ValueInput.createByReal(5), adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
.rootComponent
in
rootComp = design.rootComponent
is not hinted. -and it makes no difference, if I use
design = app.activeProduct or design = adsk.fusion.Design.cast(app.activeProduct)
What is the advantage of the cast version?
Is there a way to make the hints work for everything?
.extrudeFeatures
.sketchCurves
.sketchCircles
...
Right now, it is not working for me.
Solved! Go to Solution.