icon

Get the information of SweepBarAlongPath


Hi everyone,

I am stuck on a problem.

I tried to get information from a place_ment write by SweepBarAlongPath by used get element but I coundn't do something else after selected it .

My aim is to use methods of SweepBarAlongPath (GetPlacementSections , GetEdgeOffsets, v.v.v. ) from curent selected.

Please find the attached with .ndw , .py and .pyp file.

thank you !

Anhänge (2)

Typ: image/png
27-mal heruntergeladen
Größe: 130,92 KiB
Typ: application/zip
1916-mal heruntergeladen
Größe: 112,05 KiB

Try a minimal script to draw a small sweep and then immediately select the element and call the getters, to isolate issues.

smash karts

Okay, that's a tricky one! It sounds like you're hitting a roadblock accessing SweepBarAlongPath methods after element selection. Perhaps instead of immediately trying to call GetPlacementSections and such, first ensure the selected element is explicitly cast or recognized as a SweepBarAlongPath object. That might unlock access to the methods you need. Maybe review bloodmoney example code for casting similar objects.

bloodmoney