Hi,
I’m unrolling some named parts and the resultant unrolled surface is being named “xxx_unrolled”
Is there a way to change this Unrolled name?
Thanks, Andrew
Hi,
I’m unrolling some named parts and the resultant unrolled surface is being named “xxx_unrolled”
Is there a way to change this Unrolled name?
Thanks, Andrew
Script it.
Hi Andrew,
Indeed no native option.
Are you capable of scripting it yourself?
-Willem
Hi Willem,
Thanks - no, cannot script myself, but its not a biggie, so don’t worry!!
Thanks all
I think I found this script somewhere on the rhino site a long time ago:
ReplaceText.rvb (1.6 KB)
Just put “_Unrolled” in the first field and a space in the second.
Hi Thomas,
Unfortunately this script only handles the text in text objects; not object names.
@solosails in python to remove for all objects '_Unrolled" in the object name use this python script:
import rhinoscriptsyntax as rs
def Main():
remove = '_Unrolled'
all = rs.AllObjects()
for obj in all:
name = rs.ObjectName(obj)
if name:
new_name = name.replace(remove,'')
rs.ObjectName(obj,new_name)
Main()
remove_unrolled.py (277 Bytes)
True
Unroll & Label.rvb (2.8 KB)
This might do what you’re after.
Awesome! Thanks for the help people!