logo
NOTICE:  This is the new PunchCAD forum. You should have received an email with your new password around August 27, 2014. If you did not, or would like it reset, simply use the Lost Password feature, and enter Answer as the security answer.
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
BPL-RFE  
#1 Posted : Saturday, December 8, 2012 5:02:16 PM(UTC)
BPL-RFE

Rank: Member

Joined: 11/16/2010(UTC)
Posts: 57

Was thanked: 2 time(s) in 1 post(s)
Hello.

After struggling with the macro language for some time i finally succeeded
in programming a 3D-Part-Library for Screws/Nuts/Washers.

The Library is for share with the community.
It contains METRIC Parts.
It consists of
> 7 sorts of Screws
> 7 Sorts of Nuts
> 3 Sorts of Washers
Everything together 1445 Parts.
Sorry for using the old DIN-Designations.

I set up the macros under WINDOWS XP using AKELPAD as Editor (since
Notepad insists of Files having TXT-extensions) and i used CALC (Part
of Open Office) to calculate the necessary coordinates.
I tested the Macros with Viacad 7 Pro and Viacad 8 under Windows XP
and Windows 7 and everything worked fine ...

I have no access to a Mac, but i read somewhere that ASCII-Text-Files
written in Windows should work under MAC OS X, so maybe someone
can try this and post here if this is true ...

Installations Instructions:
Download and unzip to a directory of your liking.
Rename directories if you feel the need.
Use the "File > Import > Macro" Command and choose a file of your
liking.

Feel free to post Praise, Flames, Comments here in this thread.

Merry Christmas.

Roland :)
File Attachment(s):
VC-3D-Lib-Macro-Part1.zip (677kb) downloaded 77 time(s).

You cannot view/download attachments. Try to login or register.
thanks 2 users thanked BPL-RFE for this useful post.
gruenix on 11/30/2014(UTC), specktech on 5/23/2021(UTC)
lgrijalva  
#2 Posted : Sunday, December 9, 2012 12:16:17 PM(UTC)
lgrijalva

Rank: Senior Member

Joined: 6/15/2007(UTC)
Posts: 392

Was thanked: 1 time(s) in 1 post(s)
Great Job!!

Thanks, I put them on symbol's folder so they can be drag'n drop into the file without need to be imported, the bad is that there is no preview icon, finding a way to have it will be amazing.

Luis G.
Luis G
Industrial Designer
MacOSX 10.10, Yosemite
Shark FX V8, Beta testing Shark FX V9-1146
www.miditec.com.mx
www.diferro.com
Filip  
#3 Posted : Tuesday, June 25, 2013 12:29:12 PM(UTC)
Filip

Rank: Senior Member

Joined: 12/30/2010(UTC)
Posts: 126

BPL-RFE do you have for share those 3D library ?
BPL-RFE  
#4 Posted : Tuesday, June 25, 2013 1:24:56 PM(UTC)
BPL-RFE

Rank: Member

Joined: 11/16/2010(UTC)
Posts: 57

Was thanked: 2 time(s) in 1 post(s)
Hello Filip.

What do you mean exactly ?
Those Parts are clearly defined by DIN/ISO.
Dimensions can be found in every standard Literature
(Tabellenbuch/Hoischen ...).

I have seen a lot user-based libraries for different CAD-Systems.
Feel free to use my macros to your liking ...

Roland
Filip  
#5 Posted : Wednesday, June 26, 2013 11:45:11 AM(UTC)
Filip

Rank: Senior Member

Joined: 12/30/2010(UTC)
Posts: 126

Hello

Thanks, for this macro. I just misunderstand.

Could you explain me how to use this macro? - How to add more parts?

In one of folders DIN315 I saw files e.g. DIN315-M6.macro but I wish to add others? :)
Do you know easy way to do this?

I hae one question:
In Poland we use letters "Ś" "Ź" "ł" - I saw that if in my folder name I use this leters then macro do not works. Do you know solution for that?

P.S.
very well job. In my opinion Tim should add it to normal installation ? :))))))))
Jean-Francois Jacques  
#6 Posted : Wednesday, June 26, 2013 1:30:42 PM(UTC)
Jean-Francois Jacques

Rank: Senior Member

Joined: 11/25/2009(UTC)
Posts: 831
Canada

Thanks: 2 times
Was thanked: 29 time(s) in 21 post(s)
Roland, I downloaded your macro. On my Mac with Shark FX V7. We must import one by one, the bolt have no thread, also no preview! I think is the same on windows.

Big Thanks!
METEORE DESIGN / KEKO Stand
Jean-Francois Jacques, Industrial Designer
SharkCad Pro V14 B1653
Platform macOS 14 Sonoma
BPL-RFE  
#7 Posted : Wednesday, June 26, 2013 2:10:11 PM(UTC)
BPL-RFE

Rank: Member

Joined: 11/16/2010(UTC)
Posts: 57

Was thanked: 2 time(s) in 1 post(s)
Hello.

Use "File > Open > Macro" and then chose a macro of your liking to get the
desired Part.

Yes, the bolts don't have threads.
They are more meant for assemblies.
And in assemblies you often don't see much of the threads of bolts.
Besides that, threads are a huge performance killer.
Yes, you have to import them one by one.
Unluckily no preview with macro - you have to know the correct
DIN-Designation or pin a poster to the wall besides your screen :)

The writing was quite a struggle.
Perhaps it's a good Idea to load a macro in a text editor of your
choice and then comment all lines except the first one with commands.
Run the macro and see what it does.
Uncomment now the second line, run the macro and watch.

Basically, often some lines are drawn, an operation like extrude or revolve
is done.
After that maybe a second body is created and then a boolean operation
is performed (to get a hexagonal head or slot for example).

Remember, all units have to be in inch.
To get the needed coordinates, i set up worksheets in Open Office-CALC
and then copied everything via the clipboard to the text editor.

I see, quite complex ...
If i have the time i will do a screencast on that and then post the link here.

[@Filip: i often made the experience that using language-specific letters
is a VERY BAD IDEA. That's why i try very hard to avoid german specific
letters such as "", "", "" ]

[@Jean-Francois: Thanks for the praise. Glad to hear that the macros
also work on MAC.]

Roland
Tim Olson  
#8 Posted : Wednesday, June 26, 2013 10:43:57 PM(UTC)
Tim Olson

Rank: Senior Member

Joined: 2/2/2007(UTC)
Posts: 5,447
United States

Was thanked: 499 time(s) in 353 post(s)
Roland,

WOW...awesome!

Tonight I added a .macro import option to the v9 File:Batch Tool In Shark. This will process large amounts of files into a symbol format.


Tim
Tim Olson
IMSI Design/Encore
memphisjed  
#9 Posted : Saturday, June 29, 2013 12:26:24 AM(UTC)
memphisjed

Rank: Senior Member

Joined: 12/19/2010(UTC)
Posts: 110

Thanks: 14 times
Was thanked: 6 time(s) in 6 post(s)
the library is cool, sharing is cool, seeing how to macro is priceless.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.