Search found 8 matches

by Mariusz_Unilink
16 Mar 2022, 13:47
Forum: CAD VCL
Topic: How to get a single object (TsgDXFInsert) from many 3D objects (STEP)
Replies: 2
Views: 2554

How to get a single object (TsgDXFInsert) from many 3D objects (STEP)

I have a question about a possibility to get a single 3D object (TsgDXFInsert*) by mouse click on Tsg3DDrawingNavigator. Shortly - I have a drawing navigator (Tsg3DDrawingNavigator*) where are many 3D objects. All of them are displayed and all of them existing as inserts (TsgDXFInsert*). Every inser...
by Mariusz_Unilink
23 Feb 2022, 16:29
Forum: CAD VCL
Topic: How to set a color and/or transparency in 3D object (STEP)
Replies: 4
Views: 4397

Re: How to set a color and/or transparency in 3D object (STEP)

Finally I've found the solution! 1. Each object has to be set on the single layer. 2. Colors of the surface and contours on these layer can be different, but every single entity has to be added to that layer. Example: Object (TCadSoftHole): void __fastcall TCadSoftHole::GetOpView() { if(hole_ && Dra...
by Mariusz_Unilink
23 Feb 2022, 13:15
Forum: CAD VCL
Topic: How to set a color and/or transparency in 3D object (STEP)
Replies: 4
Views: 4397

Re: How to set a color and/or transparency in 3D object (STEP)

Unfortunately that approach doesn't work, or I do something wrong. I use block and insert. Changing the color of an insert does nothing. My function to create inserts looks as follow: TsgDXFInsert* __fastcall TCadSoftOperation::CreateWholeOperationInsertEntity() { //This function pushes a bunch of e...
by Mariusz_Unilink
21 Feb 2022, 14:44
Forum: CAD VCL
Topic: How to set a color and/or transparency in 3D object (STEP)
Replies: 4
Views: 4397

How to set a color and/or transparency in 3D object (STEP)

Hello everyone! I have a problem in Tsg3DDrawingNavigator. I know how to display 3D object (STEP) and how to add there: - additional lines (TsgDXFLine) - additional 3D solid based on triangles (TsgDXF3dFace) Having a possibility to add lines and triangles I'm able to add any 3D figure with contours....
by Mariusz_Unilink
31 Jan 2022, 17:14
Forum: CAD VCL
Topic: How to get a single entity from 3D object (STEP)
Replies: 3
Views: 2789

Re: How to get a single entity from 3D object (STEP)

Thank you Maria for the reply!

Im wondering - if there is a possibility to get some STEP entities not directly from the TsgDrawingNavigator or Tsg3DDrawingNavigator...
If you know some - please let me know.

Kind regards,

Mariusz
by Mariusz_Unilink
28 Jan 2022, 15:48
Forum: CAD VCL
Topic: How to get a single entity from 3D object (STEP)
Replies: 3
Views: 2789

How to get a single entity from 3D object (STEP)

Hello everyone! I have a question: How to get a single entity like line, arc, b-spline, or cylindrical surface, conical surface etc. from the 3D object (STEP). I have 3D (STEP) file on the screen and it is displayed properly. Code in C++ (Builder 2009). void __fastcall TformMain::mOpenSTEPClick(TObj...