Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Multiple Declaration Warning
mahir
Member, Developers Posts: 1,307 ✭✭✭✭✭
I resumed working on a FS I started a while back, and all of a sudden I'm getting a bunch of strange "multiple declaration" messages in the precondition attached to bound specs. As far as I can tell, there are no duplicate declarations. It's akin to getting flagged for having more than one integer variable, even though they have different names.
https://cad.onshape.com/documents/b31fa08a0fb478e2ec21edc4/w/97c384646af3940a5d60dc28/e/d4f313528a2e81f86b81914b
https://cad.onshape.com/documents/b31fa08a0fb478e2ec21edc4/w/97c384646af3940a5d60dc28/e/d4f313528a2e81f86b81914b
0
Best Answers
-
konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭seems like you imported multiple tabs which possibly both include imports of those types and constants
5 -
konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭mahir said:How can I import someone else's FS without repeating their geometry.FS import?what if you comment/delete the import of geometry.FS in your document?i think this is the problem on the side of opBoolean feature because of this:5
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,212Just seeing this -- the way to deal with redundant imports like that is to import into a namespace.
So if you do
foo::import(...)
you can use foo::whateverFunction
and their exported geometry.fs would go into the namespace foo and not cause symbol conflicts.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc6
Answers
Edit: Nope, I stand corrected. Removing the import fixes that particular error. How can I import someone else's FS without repeating their geometry.FS import?
So if you do
foo::import(...)
you can use foo::whateverFunction
and their exported geometry.fs would go into the namespace foo and not cause symbol conflicts.
@mahir
It was for some enums that I used (BooleanOperationType and TopologyMatchType).
It should be fixed now (Please update to V2.1)
IR for AS/NZS 1100