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.
Enum used as a parameter type must be exported?
 Aaron_Hoover                
                
                    Member Posts: 35 EDU
Aaron_Hoover                
                
                    Member Posts: 35 EDU                
            
                    I am trying to use the BoundingType enum in a Featurescript that I'm developing that includes an extrude. I keep getting the error "Enum used as a parameter type must be exported" when I try to use the BoundingType like so: 
The BoundingType enum seems to be used without issue in the Featurescript mentioned in this post about extruding a profile. What am I missing?
                
                        annotation { "End Type" : "End Type" }
definition.endType is BoundingType; The BoundingType enum seems to be used without issue in the Featurescript mentioned in this post about extruding a profile. What am I missing?
            Tagged:
            
        
0    
            Best Answer
- 
             ilya_baran
                        
                        
                            Onshape Employees, Developers, HDM Posts: 1,245 ilya_baran
                        
                        
                            Onshape Employees, Developers, HDM Posts: 1,245 Answering these types of questions is only really possible with a link to your document. I would guess the difference is the "export" keyword preceding the geometry.fs import in the other post is missing in your document -- so your code should read: Answering these types of questions is only really possible with a link to your document. I would guess the difference is the "export" keyword preceding the geometry.fs import in the other post is missing in your document -- so your code should read:FeatureScript NNN; Where NNN is the FeatureScript version you're using.
 export import(path : "onshape/std/geometry.fs", version : "NNN.0");Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
Answers
Where NNN is the FeatureScript version you're using.
I would suggest just exporting the enum you need.
Some reasons can be found at https://forum.onshape.com/discussion/9583/multiple-declaration-warning
IR for AS/NZS 1100