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.
FS error "Duplicate top level symbol name 'build' help?
owen_sparks
Member, Developers Posts: 2,660 PRO
Hi folks.
It's about time I started looking at FS but I'm falling at the first hurdle.
This file contains the following code:-
It's unhappy and is throwing "FS error "Duplicate top level symbol name 'build'.
If I comment out either of the imports it's happy. They point to different partstudios in the same external file.
What have I screwed up?
Cheers,
Owen S.
Business Systems and Configuration Controller
HWM-Water Ltd
HWM-Water Ltd
0
Best Answers
-
NeilCooke Moderator, Onshape Employees Posts: 5,683Both of those imports (part studios) have a build function so that’s the duplicate. Are you going to instantiate them? If so, define a namespace for each e.g:
HEATSERT::import ...
VOID::import ....
Then precede any reference to them with this namespace. If you’re having trouble i’ll Make an example.Senior Director, Technical Services, EMEAI5 -
owen_sparks Member, Developers Posts: 2,660 PROHokay, if I set them up like this all is well:-Cheers, Owen S.Business Systems and Configuration Controller
HWM-Water Ltd0
Answers
HEATSERT::import ...
VOID::import ....
Then precede any reference to them with this namespace. If you’re having trouble i’ll Make an example.
HWM-Water Ltd
HWM-Water Ltd