Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - KooT

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Re: Code Template
« on: March 01, 2010, 08:35:00 pm »
Quote
You can't access attributes of a return type from the code template editor directly.  If you need to do that you'll need to use an add-in call.  Do a search for EXEC_ADD_IN for examples.

So the only way is to write adin? Should it be C# or Visual Basic? I need to compile it to dll? Where can i find samples? here on sparx web pages, or in google? :)



2
Automation Interface, Add-Ins and Tools / Code Template
« on: February 17, 2010, 01:21:39 am »
I have another problem in code generation.

I got <<interface>> class witch have in return type another class.
Becouse i need to have array structure in return.

How can i access to atributes of return class in template editor?

3
I got it...


$pos = %FIND(opNotes, "\n")%
$notes = %LEFT(opNotes,$pos)%

:)

4
Hello,
im trying to write my code teplate.
I need to get from 'Operation Notes' only first line.
Now i got there (from python template):

%PI=""%
%if genOptGenComments != "T"%
%endTemplate%
$notes = %REPLACE(opNotes, "\n", "\n    ")%
%if $notes != ""%
$notes = %WRAP_COMMENT($notes, genOptWrapComment, "", "")%
%TRIM($notes)%\n
%endIf%


How i can get only first line (to first \n) ?


Thanks for help!

Pages: [1]