Cheking a model for an attached drawing using VB
Cheking a model for an attached drawing using VB
(OP)
Does anyone know a command that checks if a the current model has a drawing sheet? I have been looking for a couple days so far, but have not found any luck..
Thanks for the help!
Thanks for the help!
Eric Roe
Electro-Mechanical Engineer
Airfloat LLC





RE: Cheking a model for an attached drawing using VB
CODE
www.nxjournaling.com
RE: Cheking a model for an attached drawing using VB
I currently have a journal file that will set the drafting sheet to display, and then save the file in modeling. The only problem is that sometimes there is a file that does not have a drawing sheet attached, so it throws an error.
If there was a command to check if drawing sheets exist, then I could use it in an if statement.
Or if there is a command that returns the number of drawing sheets in the file, then I can use an if statement to check if the command returns 'zero'...
These are my thoughts, which boils down to knowing the right command.
I still do not quite understand how people find these commands? I have not found a very easy way to search for a certain command.. (other than posting a thread on here, which has always worked great). If it is something simple, I usually record a journal, then cut and past the commands from the "auto code" into a new program in order to manipulate it to do what I want it to.
Can someone share how they learn so many commands? Or is it something that just comes with time, and experience?
Thanks again, and sorry for the double post with multiple questions...
Eric Roe
Electro-Mechanical Engineer
Airfloat LLC
RE: Cheking a model for an attached drawing using VB
Thanks for the help! Program works great.
Eric Roe
Electro-Mechanical Engineer
Airfloat LLC