Pi_ Posted June 20, 2014 Share Posted June 20, 2014 Hi all, I am working on a 2d/3d PIO (3d path object to create steel profiles) the 3d part is working good and now I am working on the 2d part. It would be nice if I could just convert the 3d object to 2d and controle the visible and invisble line styles. I know I can draw everything in 3d but it is very hard to draw chamfered endings (see pictures) or profiles that are rotated around there axis. I can not work with a 3d top view because I can't controle the invisible line styles... Quote Link to comment
Hippocode Posted June 20, 2014 Share Posted June 20, 2014 I honestly don't understand why we can't have the top plan view as background on our 2d view. We could just add some details and done. Now you have to recreate the whole thing in 2D, this will be a hard task calculating the position of each line.. Quote Link to comment
Pi_ Posted June 20, 2014 Author Share Posted June 20, 2014 Exactly, It would be nice if you could add a 'hidden' property to each class-linestyle. I 'll add it to the wish list Quote Link to comment
Pi_ Posted June 20, 2014 Author Share Posted June 20, 2014 I'm trying to convert geometry in my PIO from 3d to 2d by DoMenuTextByName('Convert to Lines',0); but that doesn' work, probably because the geometry is made after the script has run. Is there a work around? this is a script from another blog that works (but it is in a script, not in a PIO) Procedure Test; BEGIN BeginGroup; NameClass('klasse'); beginxtrd(0,1000); CallTool(-204); endxtrd; DoMenuTextByName('Convert to Lines',0); EndGroup; END; Run(Test); Quote Link to comment
Hippocode Posted June 20, 2014 Share Posted June 20, 2014 Some functions just don't work in objects, particularly in the recalculate event. It might work in any other event but this won't make it a part of your object so... Quote Link to comment
Pi_ Posted June 20, 2014 Author Share Posted June 20, 2014 look wath I found! FUNCTION GetObjectHiddenLine( hGeometry3D :HANDLE; cuttingHeight :REAL; bottomOfCutPlane :BOOLEAN) : HANDLE; I'm not completly sure what the parameters are. It seems that it gives the visible line of the cut away geometry. But then the name of the function doesn't make a lot of sense... I contacted tech support, hope to get answer soon... So I was able to create visible lines. Also to create cut away, but so far no luck with the hidden lines... Quote Link to comment
JBenghiat Posted July 16, 2014 Share Posted July 16, 2014 You can embed an Auto-hybrid in a PIO. An AH is essentially just a PIO, with the 3D geometry stored in the profile group and settings changed with SetRField. I believe there was a discussion earlier. Exporting an AH to VS might be an informative first step. -Josh Quote Link to comment
CodeGier Posted August 7, 2014 Share Posted August 7, 2014 "convert to lines" does not work in PIOs. I recommend to use an Auto-hybrid. In the attached Record do: Set Field(tempHandle,'Auto Hybrid','display','2D'); So the Auto-Hybrid is only shown in 2D-view. This did the trick in my case. Bye CodeGier Quote Link to comment
Pi_ Posted September 8, 2014 Author Share Posted September 8, 2014 thanks CodeGier, unfortunately we work with the 'standard' version that doesn't support the AH object, I tried it in the arhitectural demo version and there it works indeed good. So I'll keep on searching for an other method... Quote Link to comment
Hippocode Posted September 12, 2014 Share Posted September 12, 2014 In the sdk you can get the planar 2d poly of a 3D poly which in my cases transfers most of the 3D content to a 2D view without much work. 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.