This content has been marked as final.
Show 4 replies
-
Re: Macro doesn't run
Deepak Gupta Mar 17, 2016 2:19 AM (in response to Mr Omkar Deshpande)Share your macro to test and check along with sample files.
-
Re: Macro doesn't run
Mr Omkar Deshpande Mar 17, 2016 4:51 AM (in response to Deepak Gupta)I think problem is solved, though it doesn't seem logical. I think macro was running but getting exited without error.
I had used swModel.Extension.SelectByID2 swAnnName, "ANNOTATIONTABLES", 0, 0, 0, False, 0, Nothing, 0
to select the existing BOM. But in some cases it was not working.
Hence, i thought to give the exact location of BOM for selection:
swModel.Extension.SelectByID2 swAnnName, "ANNOTATIONTABLES", vPos(0), vPos(1), 0, False, 0, Nothing, 0
And it worked!
Still not getting why it didn't give any error..
-
Re: Macro doesn't run
Deepak Gupta Mar 17, 2016 4:56 AM (in response to Mr Omkar Deshpande)You could rather loop thru the feature tree and select the BOM feature.
-
Re: Macro doesn't run
Mr Omkar Deshpande Mar 17, 2016 5:07 AM (in response to Deepak Gupta)Good idea! But still question is why it was working with F5?
Thanks for reply!!
-
-
-