- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all.
It seems to me that easier is the problem and harder is to find a solution !
Someone can help me ? I expect that the solution is so simple that I cannot find it !
I’m trying to write a simple script to visualize a sphere. What could be simpler ?
I’ve tried the Sphere object
sphere = adsk.core.Sphere.create(point, 5)
but that is transient so I cannot see anything
A question could be: how can I convert it to a visible entity ?
In a post I found an hint telling that to create solids must be used the Feature object.
Looking at the examples about this argument I found that a lot of examples deals with extrusion but I cannot find any example about sphere or cylinder.
Using features I arrive to create the spheres collection without errors:
rootComp = design.rootComponent
features = rootComp.features
spheres = features.sphereFeatures
But I don’t know how to continue to add a visible sphere
I cannot find no createInput or add method (?)
I searched for the forum but I did not found no solution.
Many thanks
Dino
Solved! Go to Solution.