Hi Community,
Just a quick one, currently updating some Openbuilding GC scripts from Version 5 to Version 7 and I'm getting error "Value does not fall within the expected range." when the script hits
"LineStyleName = 'STYLE_ByLevel';"
Just wondering if anyone knows what value to use in Version 7 to set this the ByLevel?
Regards,
Josh
Hello Josh,
Can you please share the GC script with us, so that we can have a look into the whole script properly.
Regards,Alifur
'STYLE_ByLevel' is no longer a valid line style name in MicroStation / OBD. So that is the reason it was throwing the error. For upcoming versions if there is anything with that lifestyle it will be automatically replaced by an empty string.
Hi Josh,
You can try LineStyleName = '' (Please Note: use single quote 2 times, don't use double quotes)
You can use the Find and Replace tool to remove 'STYLE_ByLevel' and replace it with ''. This way you will get rid of all the errors at once.
Don't worry, you can thank me in the office.
Jaimin Patel
Thanks Jaimin will give it a go this afternoon.
Unfortunately i've already found/replaced with blanks so i could get it to run. Will now have to manually put the new line in one by one.
Josh kerry
That is what we have tried to fix in update 8, where you do not need to manually update the LineStyleName, it will automatically rename the STYLE_ByLevel with ''.
Regards.Alifur