Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Promting in vba / api in solidworks ?

Status
Not open for further replies.

jlivingstonsg

Computer
Joined
Aug 14, 2015
Messages
4
Location
SE
Hello.

There is a great youtube video on how to use VBA in AutoCad.

Can someone tell me how to do the same in SolidWorks?

When I run it it prompts me to insert two values, length and width, then I get a square in AutoCad.
Can it be done in SolidWorks?
When I do the same in SolidWorks it does not prompt or draw anything.

Up left in Autocad there is something called "ThisDrawing".
That is missing in SolidWorks.

What do I change to get it to work in SolidWorks?


Regards Magnus
 
Anna already gave you a hint.
SolidWorks is capable but probably not the way you expect it to behave. You should not expect two different products look and feel exactly the same.
 
--

Is it not possible to create a drawing by activating a "UserForm" in Solidworks as in Autocad in the video?

Regards

---
 
Why do you need length and width to get a square?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top