×
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

Need a bit of help

Need a bit of help

Need a bit of help

(OP)
Hi Gents,
Just a couple of questions I'm hoping someone will be good enough to help me with.
I have tried to find the answers but just can't.

Could someone point me too the commands to alter the contents of the Datum & GD&T boxes on 2D drawings with a macro? I would like to have pre-defined ones but can't find the commands in the automation file.

Could someone also give me a poke on how to create a dimension with a macro, any will do just so I get the idea?

and lastly
Does anyone have the roughstock code I could take a look at?
I've been told Radek either has it or wrote it but I don't know how to contact him.

thanks guys

best regards
Alan

RE: Need a bit of help

(OP)
Hi Ferdo,
My thinking is that I can drop a Tolerance box on the drawing then run a script to fill in the details.
I'm using the same idea for different hole details which is making the drawing quicker to complete and a lot more consistent.
I have attached a jpeg showing what I mean.

I have looked at the Portable Script Centre, I was hoping to see the code for the rough stock mainly to see how it works.

thanks
Alan

RE: Need a bit of help

Alan, I'm really a lazy guy when we talk about boring tasks, that's why I like programming bigsmile (I'm not a professional programmer by the way).

You can delete on that drawing everything, save with another name and let just what you captured in the jpg file. Is interesting what you are trying to do and maybe someone can test different things on that drawing. You will not find so easy peoples willing to recreate your problem.

Did you saw the code for bounding box?

Regards
Fernando

https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU

RE: Need a bit of help

(OP)
Thanks for the reply Ferdo,
I have managed (with the help of yourself and the other guys here) to do most of the dimension annotations that I need.
I've found even simple scripts that create text boxes with predefined text inside make creating drawings much faster with zero spelling mistakes.
Things like "TYPICAL 2-PLACES" or "C/SINK TO SUIT M6 SCREW" cuts down on the mouse clicks :)
There is other stuff I would like to do but that will take a lot more learning on my part.
With the tolerance box I just need pointing in the direction of the commands in the automation file.
There doesn't seem to be any reference to it but I could be looking in the wrong places.

cheers
Alan

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