TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

Selecting part tree items via SDK
Read 174 times
* May 04, 2019, 04:58:12 PM
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?
I´m using Win 10 Pro, TC Pro Platinum 2017 64 bit, Version 24.0 Bulid 79.1