- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
I am using PowerShape 2015 R2 and Visual Basic 2010 Express.
I am doing a program and i am stuck with this situation.
I need do export everything that is VISIBLE.
If i use this macro and run it in PowerShape, it works fine.
FILE EXPORT WIZARD
NEXT
D:\Moldes\tmp_elec.dgk
EXPORTTYPE VISIBLE
WIZEXPORT
EVERYTHING PARTIALBOX
But if i use it with Visual Basic 2010, don´t work.
PSHAPE.Execute("FILE EXPORT WIZARD")
PSHAPE.Execute("NEXT")
PSHAPE.Execute("D:\Moldes\tmp_elec.dgk") 'It stops here. Don´t use the path.
PSHAPE.Execute("EXPORTTYPE VISIBLE")
PSHAPE.Execute("WIZEXPORT")
PSHAPE.Execute("EVERYTHING PARTIALBOX")
Note:
This works in Visual Basic, but don´t export everything that is VISIBLE, like "Workplanes" that aren´t activated.
PSHAPE.Execute("FILE EXPORT D:\Moldes\tmp_elec.dgk")
Solved! Go to Solution.