Submitted by Hagen on Mon, 03/13/2017 - 02:59
Forums:
Hy,
i created a project for drawings.
What i need is the drawing number for each body in the assembly.
I loop through all label and ask the leaderdata for the object.
Then i use the view to find the sheet.
Everythings works fine an fast.
Then i try to set a user attribute to the body. This is very slow if i use:
Attbody.SetUserAttribute(ATTName, -1, thepage, Update.Option.Now)
If i set the Update.option to later the prozess runs fast but the update
theSession.UpdateManager.DoUpdate(form.markId1) takes a lot of time.
There are about 2700 Labels on the drawing.
Is there a faster way?
Thanks Hagen
re: set attributes
Offhand, I don't know of another way to do it. If the process takes a long time, you might consider running it in batch mode and starting the process at the end of the work day, letting it run overnight.