As you know when Design Tree gets longer, to have an origin planes as a reference plane each time needs to travel back to select an origin planes. Is it possible to allocate separate hot keys to each origin planes (Front, Right and Top)?
As you know when Design Tree gets longer, to have an origin planes as a reference plane each time needs to travel back to select an origin planes. Is it possible to allocate separate hot keys to each origin planes (Front, Right and Top)?
Hi Maha,
You don't need to know VBA to make this work. It's just a matter of copy paste in the right environment.
Artem Taturevych has even made an easy to follow video on how to set "Custom toolbar" up and running:
User Guide for Custom Toolbar SOLIDWORKS add-in
I really recommend using "Custom toolbar". I've been testing it and it is top of the art (like anything Artem makes ;-)
This is how it looks after adding those 3 buttons.
In this screenshot the Top plane was selected, making it possible to mate it without scrolling to the top in the feature tree.
If you have any question, feel free to ask.
Eddy
Thanks for the information. In this forum, mostly I see programs in VBA. I wish to know the reason avoiding C# programming. Because I know little C# therefore I found it is easy to build up from that.
Similar to following program is also useful, if notification is duplicating a similar plane unwittingly.
How to check whether a plane with specific name present in a part or not and if not then create it?
Hi Maha,
I prefer to use C# myself too.
I think most people use VBA here because you can use macro recording out of the box.
Macro recording is great for getting to know the API commands you will need to replicate what you do manually.
For macro recording in C# you have to set up some things first. see Codestack for more details about that:
SOLIDWORKS Macro types - VBA (swp), SWBasic (swb), VSTA (dll)
Eddy
Did look at the link I posted before:
Artem Taturevych has even made an easy to follow video on how to set "Custom toolbar" up and running:
User Guide for Custom Toolbar SOLIDWORKS add-in
"Custom toolbar" is an addin you have to install yourself. It´s not part of the Solidworks installation.
Eddy
Hi Maha,
You can find the installation instructions here:
There is a link to the download page on App center if you want to give it a go immediately:
Download and save the msi file.
Double click on it in windows explorer. (make sure SolidWorks is closed)
Then you open SolidWorks and you should see the addin in the addin manager:
If that is OK, you should see it in the Tools menu also:
Have fun with it.
Eddy
Hi Maha,
I would recommend to use the Codestack website. It is made by Artem Taturevych and is solidworks oriented.
Programming in Visual Basic (VBA)
Eddy
You don't need to know VBA to make this work. It's just a matter of copy paste in the right environment.
Artem Taturevych has even made an easy to follow video on how to set "Custom toolbar" up and running:
User Guide for Custom Toolbar SOLIDWORKS add-in
You just have to watch the above video to see how to do it.
Did you already manage to create a new macro?
Menu Tools > Macro > New
give it a name and location on your hard disk:
this opens the new file in the VBA editor:
Select all and paste the vba code in the region with the yellow rectangle.
Once you have your macro on disk you can link to it in CAD+ later on.
Eddy
Hi Maha,
How is it going with the plane buttons?
Did you get it working?If that is the case, please mark Artem Taturevych 's answer as correct, so that others can find this solution easier.
thanks,
Eddy
Now it is okay.
I am looking for program to notify me if there is a duplication of a plane only. So that if there are many planes in a work I can avoid creating a same plane unnecessarily. For example in addition to notification by text saying "Duplicating a Plane" I like to see an following indication as well.
This program is in mind but I do not know how to modify it to suit my need because I do not know VBA.
How to check whether a plane with specific name present in a part or not and if not then create it?
To be fair Eddy Alleman answer should be marked as correct, not mine as my contribution was quite small. Thank you Eddy for helping with very detailed steps and instructions.
Take a look at this solution: Select standard plane (e.g. Front) by type using SOLIDWORKS API