TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
All posts discussing pricing or where to buy TurboCAD will be deleted.

Selecting part tree items via SDK
Read 252 times
* May 04, 2019, 04:58:12 PM
Hi,
I´ve been trying to select a single item within a part tree.

The part tree contains two cylinders which are linked via 3D-boolean add.
I determined the IDs for all items and substructures (see attachment).
(My sample also contains a cube ("Quader"))

By using "TCDraw.Graphics.GraphicFromID(itemID).Select()" I can only select the first level items (i.e. part tree or Quader) which are subsequently shown in TC.
Selecting lower levels ("Zylinder", "Kreis") give no visual feedback in TC.
(Moving those items by MoveRelative move a copy (?) of the cylinder but leaves the shape at the old position as well)

I´ve been fiddling around quite a long time, trying several combinations of .Cosmetic=true/false, .update etc., but to no avail.

Any ideas?
Werner
I´m using Win 10 Pro, TC Pro Platinum 2017 64 bit, Version 24.0 Bulid 79.1

Logged