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 - Rollie

Pages: [1] 2
1
General Board / Re: Custom Transform Function Macro
« on: January 29, 2009, 09:05:37 am »
The light just came on.  I was looking for a return, send, result or some other keyword to return the contents of the variable.  I had assumed that text that is generated from a macro went directly to the intermediate file, I did not see any documentation that states if it is wrapped or being assigned, then it does not generate to the intermediate file.  Thanks again.

2
General Board / Re: Custom Transform Function Macro
« on: January 29, 2009, 08:56:23 am »
Simon, I am familiar with calling a Macro, but I have not found any example that shows how to return a value to the calling macro.  I have some custom name formatting that I need to apply from multiple macros.  Rather than pasting the same logic in each macro, I would like to pass the name to a custom function macro, and have it return the string value of the properly formatted name so that it can be applied to different element types.  Is it possible to have a custom macro return a variable to the calling macro, making it a custom function?
Thanks

3
General Board / Custom Transform Function Macro
« on: January 28, 2009, 01:39:36 pm »
Is it possible to write a custom transform function macro?  I have no problem using the EA supplied function macros, but I cannot find any documenation on writing a custom function macro.  I have some transformation logic that needs to be called by more multiple templates and needs to return a string.  I would rather not duplicate the code in each template.

4
General Board / Re: Get Relationship type for Linked Attribute
« on: January 29, 2009, 09:01:10 am »
Yes. I tried calling Connectors several days ago and realized it would not work.  Tried doing the list over the connectors today and it works great.

5
General Board / Re: Get Relationship type for Linked Attribute
« on: January 29, 2009, 08:51:42 am »
Thanks Simon.  I have been working on this one all day and just before you posted found out that I instruct the Class template to call the Connector template from within the class.  I need this information for a getter of the source class.  I was going by the standard Java template which used the LinkedAttribute template and did not think about switching in a custom Connector template within the class.  Thanks again.

6
General Board / Get Relationship type for Linked Attribute
« on: January 28, 2009, 02:18:26 pm »
I need to be able to obtain the relationship type, aggregation or association, from a custom Linked Attribute transformation template.  Does anyone know if this is possible?

7
General Board / Re: Need to add to Notes during transformation
« on: December 07, 2008, 06:25:26 pm »
I found a good list by searching for "Field Substitution Macros" in EA's Help Contents, and then selected the topic that displayed named "Field Substitution Macros."   I think you will find your alias in that list.

Rollie

8
General Board / Re: Need to add to Notes during transformation
« on: December 04, 2008, 10:10:08 am »
Thanks Simon.  Worked like a charm!

9
General Board / Need to add to Notes during transformation
« on: December 03, 2008, 02:18:44 pm »
I am trying to add @Model to the beginning of the Notes of Classes that are being transformed into Interfaces.  In my transformation, @Model ends up in the transformed Interface, but the original notes from the source Class object are lost.  I have tried several different things, but nothing seems to work.

Here is my transformation code for the Class macro:

%if elemType != "Class" and elemType != "Interface"%
%endTemplate%
Interface
{
  %TRANSFORM_REFERENCE("Class")%
  %TRANSFORM_CURRENT("language", "notes")%
  language="Java"
  notes=%qt%@Model\n%notes%%qt%
%list="ClassBase" @separator="\n" @indent="  "%
%list="ClassInterface" @separator="\n" @indent="  "%
%list="InnerClass" @separator="\n" @indent="  "%
%if elemType=="Class"%
%list="Attribute" @separator="\n" @indent="  "%
%endIf%
%list="Attribute__AsProperties" @separator="\n" @indent="  " attScope=="Public"%
%list="Operation" @separator="\n" @indent="  "%
}
%list="Connector" @separator="\n"%

10
General Board / How can I hide Object Name in 6.1
« on: April 13, 2006, 07:37:07 am »
One of the users at our corporation has upgraded to version 6.1.  When she places an interface object on a custom diagram, and applies an alternate image, the parent:object name displays in text below the object.  This name did not appear in version 5, but is appearing in version 6.1, and we cannot find a way to hide the text.  Does anyone know how to turn this text off in 6.1?

11
General Board / Re: Scaling Diagrams in RTF Document
« on: October 22, 2004, 10:34:52 am »
When I went to build 739, scaling improved, but I still had some problems with large daigrams extending past my margins.  After trying numerous things and working with Sparx Support, I found that Word 2000 has a problem with scaling the RTF pictures when the screen resolution is greater than 1024x768.  Due to the graphic engineering tools that I support, I have mine at 1600x1400.   Apparently, the higher the resolution, the worse the problem.  I have done some searches, but have not found anything on this issue.  Has anyone encountered this and found a way to keep screen resolution high, and yet get a good EA RTF import into Word?

12
General Board / Re: Scaling Diagrams in RTF Document
« on: October 12, 2004, 07:44:38 am »
I received a response from Sparx Support.  They have identified a difference in how Word 97 and Word 2000 handles image scaling in RTF.  They have developed a fix to this issue and are testing it out now.  It should be part of build 739 .

Rollie

13
General Board / Scaling Diagrams in RTF Document
« on: October 07, 2004, 02:07:46 pm »
I just upgraded from build 735 to 738.  Before my upgrade, if I would generate an RTF document, the diagrams would scale to fit within the output page.  Since I upgraded to 738, the diagrams are not scaling, and if printed, I only see the left portion of my diagrams because they are too large to fit on the page.  I tried setting the scale for the diagram using the Advanced button on the diagram's properties form, but it did not change the generated output.  Does anyone know how to get these diagrams to auto-scale again?  Thanks.

14
General Board / Problem renaming column in foreign key
« on: November 22, 2004, 09:11:38 am »
Has anyone ran into a problem renaming a column used in a foreign key.  When I tried to rename the columns it corrupted the foreign key?  Here are some step by step details:

1.      Create table named TableA.
2.      Add column named primary_key, type LONG, Primary Key.

3.      Create table named TableB.
4.      Add column named ta_primary_key, type LONG.

5.      Associate TableB to TableA.
6.      Select the Foreign Keys option using right mouse click on the association.
7.      Select ta_primary_key in left list and primary_key in right list and then click on the save button.

8.      Now, TableB appears to be related to TableA through the “ta_primary_key=primary_key” association.

9.      Select primary_key from TableA and change its name to primary_sequence, then click on the save button.
10.      Click yes to propagate the name change to connected tables.

11.      Now, TableB appears to be related to TableA through the association of ta_primary_key = primary_sequence.

12.      Now select the column for ta_primary_key in TableB and change its name to ta_primary_sequence and click the save button.
13.      Click yes to propagate the name change to connected tables.

14.      Now, TableB still appears to be related to TableA through the “ta_primary_key = primary_sequence” association and not a “ta_primary_sequence=primary_sequence” association.

15.      If I go to the foreign dialog box and remove the incorrect association referencing a key that no longer exists, I can then add the correct association.


Note: It appears that if I perform the rename on the column in TableB first, then rename the column in TableA, the foreign key is updated correctly.  Am I doing something wrong, or is this a problem?

Thanks

15
General Board / Re: Multiple operations on selected elements
« on: November 09, 2004, 01:24:06 pm »
Thomas,

Thanks for the info.  :)

Pages: [1] 2