ImagePro>Re: Can a IPBasic macro call a Macro made with the SDK?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ImagePro>Re: Can a IPBasic macro call a Macro made with the SDK?
- To: <imagepro-users[at]lists.mediacy.com> (Image-Pro Plus Users Email List)
- Subject: ImagePro>Re: Can a IPBasic macro call a Macro made with the SDK?
- From: Stan Voynick <svoynick[at]selmar.com>
- Date: Fri, 16 Nov 2001 10:16:03 -0800
- List-Archive: <http://lists.mediacy.com:80/Lists/imagepro-users/List.html>
- List-Unsubscribe: <mailto:imagepro-users-off@lists.mediacy.com>
- Reply-To: <imagepro-users[at]lists.mediacy.com> (Image-Pro Plus Users Email List)
- Sender: <imagepro-users[at]lists.mediacy.com> (Image-Pro Plus Users Email List)
Chris:
I totally agree, and I do exactly that in 95% of my stuff (as I showed
in my example earlier in this thread.) However, in the context of this
customer's requirements, it was a specific process to be automated, and we
(my client and I) agreed that we wanted the bulk of the process to be coded
in "C", but they wanted control over a small, very specifically defined part
of it - in this case it was the implementation of a certain mathematical
calculation in the middle of the process. In that context, it seemed the
smoother implementation to call a macro from the "C" code.
I suppose I could have provided two plug-in functions, something like
"Process_Part_1" and "Process_Part_2", and require the user to write a macro
that would call "Part_1", then do their calculation, then require them to
call "Part_2" to finish the process, but it just seemed cleaner - again, in
this specific context - to do it with the macro call from C
But I do agree with your assertion, and that's how I do it the vast
majority of the time. I love AutoPro and the was it allows you to extend
ImagePro. 90% of the time when a client comes to me with the question
"well, can I do this {bizarre request} with it?", my answer ends up being,
"well, I can write you a macro..."
- Stan -
--
------------------------------------------------------------------
Selmar Technologies, Inc. voice (510)793-1737
36564 Nettles Ct. fax (510)793-3270
Fremont, CA 94536 Email <svoynick@selmar.com>
Chris Tully wrote:
>
> Stan,
>
> Keep in mind that the better approach to allowing a user to experiment with
> your code is to take the trouble to implement macro support. At that point,
> they can write standard AutoPro macros, and call your module in exactly the
> same way they call any other module in IPP.
>
> Chris Tully
> Senior Technical Services Engineer and Quality Assurance Analyst
> Media Cybernetics, Inc. "From Images to Answers"
>
> -----Original Message-----
> From: Image-Pro Plus Users Email List
> Sent: Friday, November 16, 2001 12:20 PM
> To: Image-Pro Plus Users Email List
> Subject: ImagePro>Re: Can a IPBasic macro call a Macro made with the
> SDK?
>
> Kevin Ryan wrote:
> >
> > Normally we don't recommend calling macros from C/C++ code. There's
> > no guarantee that the appropriate macro is available!
>
> ... but there are occasionally cases where it might be useful. I had coded
> an application in a plug-in, but I wanted to give my (relatively
> sophisticated) end-user some the ability to reprogram one particular part of
> the process, so at the appropriate place in my "C" code, I inserted a call
> to a pre-defined script file and macro name. That kept most of the process
> in fast, efficient C-code, but still gave the user the flexibility to
> experiment and change the process in the desired way.
>
[ ... remainder snipped ... ]
***********************************************************
Need an Image-Pro macro or driver? Find it at http://www.Solutions-Zone.com
Got an Image-Pro macro or driver? Add it to http://www.Solutions-Zone.com
***********************************************************
This message is sent to you because you are subscribed to <imagepro-users@lists.mediacy.com>.
To unsubscribe, email to: <imagepro-users-off@lists.mediacy.com>
To switch to the DIGEST mode, email to <imagepro-users-digest@lists.mediacy.com>
To switch to the INDEX mode, email to <imagepro-users-index@lists.mediacy.com>
Send administrative queries to <imagepro-users-request@lists.mediacy.com>
To subscribe or unsubscribe visit http://www.solutions-zone.com/ipednld/subscriber.asp