Hi,
I have used images with custom resolution to build my model (0.5 um resolution is considered as 1 length unit). Is there any way to scale the geometry after model is built or it can only be done when importing the image?
Thank you.
Best,
Mehrdad
Scale after building the model
- David Parker
- Posts: 1775
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Scale after building the model
Hi Mehrdad,
The SV Modeling Tool does not have scaling. You can scale the model written by SV to a .vtp file using VTK. You can use the script here https://github.com/ktbolt/cardiovascula ... olydata.py to do that.
Cheers,
Dave
The SV Modeling Tool does not have scaling. You can scale the model written by SV to a .vtp file using VTK. You can use the script here https://github.com/ktbolt/cardiovascula ... olydata.py to do that.
Cheers,
Dave
- mehrdad roustaei
- Posts: 16
- Joined: Wed Oct 03, 2018 10:40 pm
Re: Scale after building the model
Thank you!
- Charlie Bright
- Posts: 30
- Joined: Mon Jan 27, 2020 3:49 am
Re: Scale after building the model
Hi Dave,
I was just wondering if there are any similar methods for scaling a Parasolid model?
I'm having trouble setting up a 1D simulation and I'm guessing my scale is the culprit.
Thanks,
Charlie
I was just wondering if there are any similar methods for scaling a Parasolid model?
I'm having trouble setting up a 1D simulation and I'm guessing my scale is the culprit.
Thanks,
Charlie
- David Parker
- Posts: 1775
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Scale after building the model
Hi Charlie,
There is currently no way to scale a Parasolid model in SV. I am planning on adding that to the Python API some day.
The 1D simulation assumes CGS units so you will need to scale your model.
You could scale the model using SolidWorks if you have that. If not then you would need to scale it programmatically using C/C++ and the Parasolid modeling kernel. I could write that for you if you want.
Cheers,
Dave
There is currently no way to scale a Parasolid model in SV. I am planning on adding that to the Python API some day.
The 1D simulation assumes CGS units so you will need to scale your model.
You could scale the model using SolidWorks if you have that. If not then you would need to scale it programmatically using C/C++ and the Parasolid modeling kernel. I could write that for you if you want.
Cheers,
Dave
- Charlie Bright
- Posts: 30
- Joined: Mon Jan 27, 2020 3:49 am
Re: Scale after building the model
Hi Dave,
Cheers for the speedy reply and for clearing up the units.
I hadn't thought about opening the .xmt_txt in Solidworks - the txt threw me off.
Scaling through there worked like a charm (though to future readers: you may need to rename the exported .x_t files back to .xmt_txt)!
I think my issue should be sorted now, although I do think a C script would be useful addition to SV, especially for those using a Mac.
Thanks for all your help,
Charlie
Cheers for the speedy reply and for clearing up the units.

I hadn't thought about opening the .xmt_txt in Solidworks - the txt threw me off.
Scaling through there worked like a charm (though to future readers: you may need to rename the exported .x_t files back to .xmt_txt)!
I think my issue should be sorted now, although I do think a C script would be useful addition to SV, especially for those using a Mac.
Thanks for all your help,
Charlie
- David Parker
- Posts: 1775
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Scale after building the model
Hi Charlie,
I'm glad you were able to use SolidWorks to scale the model, nice simple solution!
I will add model scaling to the SV GUI and Python API next year, a few issues with the SV modeling API I need to clear up first.
Cheers,
Dave
I'm glad you were able to use SolidWorks to scale the model, nice simple solution!
I will add model scaling to the SV GUI and Python API next year, a few issues with the SV modeling API I need to clear up first.
Cheers,
Dave