How to export Onshape model for use in Simulink using smexportonshape('URL')
samuel_razumovskiy
Member Posts: 4 ✭
I'm getting this error when running the command:
The link then leads to a page with this on it:
"{"message":"Unauthenticated API request", "status":401}"
The Step files are all generated properly but it fails before the XML file is generated. I was also able to run this command successfully using an example from Mathworks so I'm not sure where the issue may lay. Any help is appreciated!
"Error using smexportonshape_implementation
The server returned the status 403 with message "Forbidden" in response to the request to URL
Error in smexportonshape_implementation
Error in smexportonshape_implementation
Error in smexportonshape_implementation
Error in smexportonshape_implementation
Error in smexportonshape (line 38)
xmlFileName = smexportonshape_implementation(url, varargin{:});"
The link then leads to a page with this on it:
"{"message":"Unauthenticated API request", "status":401}"
The Step files are all generated properly but it fails before the XML file is generated. I was also able to run this command successfully using an example from Mathworks so I'm not sure where the issue may lay. Any help is appreciated!
0
Answers
-
Hello. I would first make sure you're following all guidelines on the MathWorks site about the Onshape connector. It is only made for Assemblies (not Part Studios) and you should make sure the assembly and any subassemblies have a fixed component that can serve as your reference frame.1
-
Hey Matt, I am using an assembly and I have everything fixed properly. This is a pretty simple model with a few part studios and a single assembly.0
