Reply

Update on save as status ST8

Hello everybody,

I checked  Update on save as status on an asm with this code

 

Dim objApplication As SolidEdgeFramework.Application = Nothing
Dim objDocuments As SolidEdgeFramework.SolidEdgeDocument = Nothing
Dim objPhyProps As SolidEdgeAssembly.PhysicalProperties = Nothing

objApplication = Activator.CreateInstance(Type.GetTypeFromProgID("SolidEdge.Application"))
objApplication.Visible = True
objApplication.DisplayAlerts = False

objDocuments = objApplication.Documents.Open("C:\test.asm")
objDocuments = objApplication.ActiveDocument
objPhyProps = objDocuments.PhysicalProperties

objPhyProps.UpdateOnFileSaveStatus = True
objPhyProps.UseQuantityOverrideMass = True
objPhyProps.Update() 

'......

but when i save this assembly, mass properties does not update.

 

if I check it with mouse mass properties update well.

 

anybody has an idea?

 

 

7 REPLIES

Re: Update on save as status ST8

Re: Update on save as status ST8

[ Edited ]
Thank you BalamuruganM But I know how to update physical properties. I'm in ST8 and I need to update physical properties with Solid Edge save. So I checked by code the checkbox : Update on file save in physical Properties windows. with this code objPhyProps.UpdateOnFileSaveStatus = True and it work. the problem is when I checked the checkbox by code and a draftman change asm and save, Solid Edge does not update Mass ???? If I checked the checkbox by mouse click and a draftman change asm and save, Solid Edge update Mass. Why? Thank you

Re: Update on save as status ST8

IR number : 7601269 It will be fix on ST9

Re: Update on save as status ST8

Thanks for filing an IR so that it will get fixed in the future.

Jason Newell
Applications Architect
www.jasonnewell.net

Re: Update on save as status ST8

Hello everybody!

I know I open it again but I recently instaled ST9 and still doesn't work even if they said it was fix on ST9.

(IR number : 7601269)

 

I submit again to GTAC and they tell  the code is available so they won't go further.

 

Any idea to help me on that?

 

This the code who checked the option Update on save as but doesn`t react as check manually.

 

 

Dim objApplication As SolidEdgeFramework.Application = Nothing
Dim objDocuments As SolidEdgeFramework.SolidEdgeDocument = Nothing
Dim objPhyProps As SolidEdgeAssembly.PhysicalProperties = Nothing

objApplication = Activator.CreateInstance(Type.GetTypeFromProgID("SolidEdge.Application"))
objApplication.Visible = True
objApplication.DisplayAlerts = False

objDocuments = objApplication.Documents.Open("C:\test.asm")
objDocuments = objApplication.ActiveDocument
objPhyProps = objDocuments.PhysicalProperties

objPhyProps.UpdateOnFileSaveStatus = True
objPhyProps.UseQuantityOverrideMass = True
objPhyProps.Update() 

'......

 

Re: Update on save as status ST8

I think you have the wrong IR number.  When I reviewed IR 7601269 it is for "User Section AD tab is visible with 'Customized Metrics Calculator' not loaded" on another SIemens PLM product line.

Re: Update on save as status ST8

oopss ! it's 7601296