What we would like to do if possible is to call features from one sub to another can you even do this.
subroutines
Collapse
X
-
Originally posted by T Miller View PostWhat we would like to do if possible is to call features from one sub to another can you even do this.<internet bumper sticker goes here>
Comment
-
Tom,
You need to create a print command in the subroutine prog or create the dimensions in the main prog.
To do this, you need to create a dimension in the current program. Copy and paste it and change feature name to subroutine label followed by a colon and the feature name in that subroutine. Need to run the subroutine first before it will allow you to type the name.
When it prints out, it will show the dimensions for the subs that don't run as NOT_USED. The one it does run will show up as CS1:CIR1 in command mode (sub label:feature name) but in report mode it will show only as the feature name.
Watch for duplicate IDs in the dims.
HTHPC-DMIS CAD++ 3.7 from 4.2 MR1
Comment
-
We have a group of parts .
It is a lot of different parts in the group but have a lot of the same features.
The starting location will be the same on them all. What they have so far is a program to set the start location and want to call a sub to check a few diamters on one end of the part. They did another alignment to off set start point in the -y direction and call another sub to check the other end that even goes well. But what they need is a few distance call from features in the other sub.. is that clear?sigpic
if you had soap on a rope it would be tied to yer ankle
Comment
-
Originally posted by JoeRZ View PostTom,
You need to create a print command in the subroutine prog or create the dimensions in the main prog.
To do this, you need to create a dimension in the current program. Copy and paste it and change feature name to subroutine label followed by a colon and the feature name in that subroutine. Need to run the subroutine first before it will allow you to type the name.
When it prints out, it will show the dimensions for the subs that don't run as NOT_USED. The one it does run will show up as CS1:CIR1 in command mode (sub label:feature name) but in report mode it will show only as the feature name.
Watch for duplicate IDs in the dims.
HTH
Tomsigpic
if you had soap on a rope it would be tied to yer ankle
Comment
-
No Prob T,
I was trying to upload the files (examples) but having problem...telling me it's invalid. I could not post the code because PC-DMIS not on Internet - I was trying to do attachments and just won't allow the .prg files.
JoePC-DMIS CAD++ 3.7 from 4.2 MR1
Comment
-
Originally posted by JoeRZ View PostNo Prob T,
I was trying to upload the files (examples) but having problem...telling me it's invalid. I could not post the code because PC-DMIS not on Internet - I was trying to do attachments and just won't allow the .prg files.
Joesigpic
if you had soap on a rope it would be tied to yer ankle
Comment
Related Topics
Collapse
-
by AuRulesWhat are the consequences for using dashes, underscores or etc in program or feature names. I found no problem yet.......
Example
...-
Channel: PC-DMIS for CMMs
03-10-2009, 07:31 AM -
-
by metalquest1Can anyone give me advice on how to use variable data to call a subrouting. I'd like to be able to read a part number from a text file, assign the part...
-
Channel: PC-DMIS for CMMs
10-19-2012, 01:16 PM -
-
by mconklinI know there has to be a simple way to change the name of features but I haven't been able to figure it out. I know how to change a name on each feature...
-
Channel: PC-DMIS for CMMs
12-22-2010, 10:12 AM -
-
by John RigginsWhen a part program is first created with the File, New command you enter a name in the appropriate field and then this name can be accessed with the...
-
Channel: PC-DMIS for CMMs
04-10-2017, 03:46 PM -
-
by EscheyHelle everybody,
I have written a program which read all parts to be measured (=path + filename) from an excel file. The path and program...-
Channel: PC-DMIS for CMMs
04-17-2013, 01:17 PM -
Comment