Pi_ Posted September 30, 2014 Share Posted September 30, 2014 Hi, I want to add geometry to an extrusion created inside a polyline-PIO. The geometry I want to add is read from a symbol. (I want to create custom section beams/columns) here is part of the code, the problem is that the geomtry is copied in the 3d-part of the symbol, instead of being copied in to the extrusion, even if I use 'setparent', anybody any suggestions?: if Pdoorsnede='symbool' then polyh:=HDuplicate(FInSymDef(GetObject(Psymbool)),0,0); extrudeh:=ExtrudeAlongPath(ash,polyh); if Pdoorsnede='symbool' then begin polyh:=FInSymDef(GetObject(Psymbool)); while polyh<> NIL do begin polyh:=NextObj(polyh); { h:=HDuplicate(polyh,0,0); } h:=CreateDuplicateObject(polyh, extrudeh); ok:=SetParent(h, extrudeh); end; end; Quote Link to comment
Pi_ Posted September 30, 2014 Author Share Posted September 30, 2014 extra info: the first object in the symbol is used correctly for the extrusion... (first 2 lines of code) Quote Link to comment
Pi_ Posted September 30, 2014 Author Share Posted September 30, 2014 extra info: the first object in the symbol is used correctly for the extrusion... (first 2 lines of code) Quote Link to comment
Hippocode Posted September 30, 2014 Share Posted September 30, 2014 (edited) Maybe you are trying to create an extrude based on the symbol ? In that case you need to create one surface / nurbs curve based on the geometry of that symbol and use that as profile when creating the extrude. You can't change it afterwards. The SetParent function can be used on layers, groups etc only for container based purposes. The ExtrudeAlongPath command you use doesn't create one extrudeobject but a combination of multiple surfaces that form the extrude. Its not an active object you can edit later on Edited September 30, 2014 by hippothamus Quote Link to comment
Pi_ Posted September 30, 2014 Author Share Posted September 30, 2014 thanks, I did it this way: polyh:=FInSymDef(GetObject(Psymbool)); begingroup; while polyh<> NIL do begin h:= CreateDuplicateObject(polyh,nil); polyh:=NextObj(polyh); end; endgroup; extrudeh:=CreateCustomObjectPath('Extrude Along Path', ash, LNewObj); next problem, polyh2:=GetObjectHiddenLine(extrudeh,10000, True); doesn't work on 'Extrude Along Path' (it does work on 'ExtrudeAlongPath' Quote Link to comment
Pi_ Posted September 30, 2014 Author Share Posted September 30, 2014 off course,'Extrude Along Path' is handled like a PIO and is only generated after the scipt. back to start... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.