hexagon logo

Passing Variables / Subroutine for PC-DMIS 2011 MR1

I'm new to subroutine and stuffs:

Managed to perform and callsub the subroutines out without problems but how do i exactly extract the data from the external program? (subroutine is stored in another external program, not within the main program itself). Don't really understand how the "passing variables" work, tried with all I can but never got it to work. and we can only extract the feature? not the dimension call-out for the feature? are they done in the main program, or in the external subroutine program?

Would love to hear solutions and insights from you guys, appreciate it much. Thank you!
Parents
  • you don't really need to pass the info back & forth. You can use the callsub command label to reference the feature inside the subroutine.
    CS = CALLSUB (not real sure of the command).
    Use the feature in the main program by CS:FeatureName (where FeatureName is the name of the feature in the subroutine).

    The "CS:" tells pcdmis to find the command which is "CS" and use the referenced command.

    Just replace CS with your command label and fill in the correct feature name.
    You may need to manually type the name in the dimension.
Reply
  • you don't really need to pass the info back & forth. You can use the callsub command label to reference the feature inside the subroutine.
    CS = CALLSUB (not real sure of the command).
    Use the feature in the main program by CS:FeatureName (where FeatureName is the name of the feature in the subroutine).

    The "CS:" tells pcdmis to find the command which is "CS" and use the referenced command.

    Just replace CS with your command label and fill in the correct feature name.
    You may need to manually type the name in the dimension.
Children
No Data