Hello solid edge experts,
I am trying to create a VBA in excel to open solid edge ST8
to open solid edge draft file and update all the drawing views in it which are outdated and save it.
The model is linked with excel and gets opened with VBA and did save as.
but i dont know the code to update drawing views.
I tried so many times but failed.
Please someone give me the code.
Solved! Go to Solution.
You need to run the updateviews command with the startcommand method
Private Sub Form_Load()
Dim objApp As SolidEdgeFramework.Application
Dim objDoc As SolidEdgeDraft.DraftDocument
Const TESTFILE = "T:\vbtests\testcases\cube.dft"
Set objApp = GetObject(, "SolidEdge.Application")
Set objDoc = objApp.Documents.Open(TESTFILE)
' Call the StartCommand
Set objApp = Nothing
Set objDoc = Nothing
Thank you so much. it worked for me.
I have so many dimensions in my model.
based on my excel the model changes ,
therefore i need to delete or hide few dimensions in dft.
is there any code on that.
Also kindly advice where can i learn there codes.
I am completely new to VBA.
My SE version is 108.00.00