span8
span4
span8
span4
Hello all,
I am trying to add one UUID for each CAD file entering the workbench.Is there a way to set a parameter so when a new filename enters the workbench,each feature with the same filename receives the same UUID character?I have tried using a the filenameextractor followed by the attributecreator and using the @uuid() function as the new attribute value.But that just gives each feature a different UUID instead of the same.Any assistance would be appreciated.
Thanks,
David
Create one UUID for each unique filename then merge this back to all features
Hi@david_prosack88,you can use the Creator (Number to Create: 1) and the UUIDGenerator to create a single feature containing a UUID as an attribute,then merge it to every feature unconditionally with a FeatureMerger.If you make the Creator to run at first,you can set Yes to the Supplier First parameter in the FeatureMerger to run it with better performance.
Instead of the FeatureMerger,you can also use the VariableSetter to store the UUID as a global variable after the UUIDGenerator,and get the value with the VariableRetriever on the main 亚搏在线workflow.In this case,the Creator should be run at very first.
Alternatively,you can create a private parameter of Scripted (Python) type to make a single UUID.
import uuidreturn uuid.uuid4()
When converting DWG to DGN,rotation cells is wrong,solution?1 Answer
Losing coordinate system after clip of DWG?4 Answers
AutoCAD Layout Problem0 Answers
dgn to dwg conversion3 Answers
DGN Tag to DWG OD issue6 Answers
© 2019 亚搏在线Safe Software Inc |法律