martijnberger / pyslapi

Python bindings for the official Sketchup API
237 stars 134 forks source link

Unexpected instancing of groups with the same name. #49

Open SerLinkzero opened 2 years ago

SerLinkzero commented 2 years ago

Describe the bug Importing groups that directly contains geometry entities (lines/faces) with the same name produces unexpected result of instancing.

To Reproduce Steps to reproduce the behavior:

  1. In SketchUp, draw two geometries—e.g. a box and a cylinder—and group them separately.
  2. In Entity Info, give the two groups the same instance name.
  3. Import the file to Blender.
  4. Instead of importing them as different objects, as appeared in SketchUp, the objects in Blender are instances of one of the objects.
  5. If two nesting groups have the same instance name, any geometry entity directly inside the group has similar behavior.

Expected behavior SU groups that have the same name should not be treated as instances. Using the same instance name for different geometry groups is a common practice to facilitate quick search in outliner.

Nevertheless, boolean operations in SU will produce identical instance names. This could cause issues too.

Screenshots If applicable, add screenshots to help explain your problem. Screenshots-01

System Info