×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Promting in vba / api in solidworks ?

Promting in vba / api in solidworks ?

Promting in vba / api in solidworks ?

(OP)
Hello.

There is a great youtube video on how to use VBA in AutoCad.
https://www.youtube.com/watch?v=GlIJkG5fBKU

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

RE: Promting in vba / api in solidworks ?

(OP)
--


Can anybody give me a hint?


Regards

----

RE: Promting in vba / api in solidworks ?

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.

RE: Promting in vba / api in solidworks ?

(OP)
--

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

Regards

---

RE: Promting in vba / api in solidworks ?

Why do you need length and width to get a square?

RE: Promting in vba / api in solidworks ?

(OP)
--

Then just length.

Regards

--

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources