Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unique naming option #8

Open
s-light opened this issue Oct 9, 2019 · 0 comments
Open

unique naming option #8

s-light opened this issue Oct 9, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@s-light
Copy link
Owner

s-light commented Oct 9, 2019

you can import multiple FreeCAD documents one by one right now -
every import gets its own blender collection - named after the imported file.

the only limitation is: every object needs a unique name.
so if two files contain a object with the same name the later will overwrite the earlier one..
in blender all objects are at the root level of the document - and are only 'linked' to one ore multiple scenes -
the collections are only a visual helper...

it is easy to add an 'unique name' option.
for example just add the self.doc.Name or self.doc_filename in front of the object name.
there is an - currently internal - option obj_name_prefix for a pre string in front of the object names ;-) (see #7)

so its easy to expand this:
get_obj_label(self, obj) (import_fcstd.py#L150)

@s-light s-light added enhancement New feature or request good first issue Good for newcomers labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant