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 - Geert Bellekens

Pages: 1 ... 6 7 [8] 9 10 ... 525
106
I guess you better cast both fields to string to compare them instead of trying to cast it to a number.
Casting to empty string is in general wrong idea (even if this time it might work)

I did not say cast to empty string. The null values where already checked, so this was a case of the field having a non numerical value.
When comparing a numerical field with a string field it is a better idea to cast the numerical field to a string, then to cast the string field to a numerical type.

Geert

107
I do not agree per se with Richard.
Sure, your example is bogus, but I'm sure your real use cases are much more usable.

For 1: check out bookmarks. You can add a End and Start bookmark around the part that you want to leave out if it is empty.

For 2: It looks like you've used all available scenario fields. I don't think there much else you can do. Contact Sparx support to be sure. They can enter a feature request for you if indeed that feature is not available

Geert

108
General Board / Re: Disable "Show Namespace" by default/for all diagrams
« on: December 22, 2017, 03:27:16 am »
Hi Geert,

thanks for the hint, it works perfectly fine with new diagrams! I guess changing all existing diagrams is not possible?

Markus

It is, but then you would have to write a script or something.

Geert

109
General Board / Re: Disable "Show Namespace" by default/for all diagrams
« on: December 21, 2017, 11:14:49 pm »
Markus,

Have you tried this using the template package?
You would have to set that up for each type of diagram individually.

Geert

110
Drew,

This will only work as long as a real user is logged in.

One of my clients has a dummy pc setup for this that is always logged in.
They start the script to export to html (and publish to sharepoint) as a scheduled task.

Geert

111
Alain,

If you figure out what EA is changing when putting an element on a diagram, then you can do the same in a script for all of them.
You might want to use something like SQL server profiler to get a grip on what EA is exactly changing.

Geert

112
General Board / Re: Import .uml files from StarUML2?
« on: December 19, 2017, 11:29:19 pm »
Have you opened the .uml files in a text editor?
There is a fair chance that these .uml files are actually some kind of xmi format. That should be mentioned in the first couple of lines.
In that case you can import them using xmi import.

Geert

113
General Board / Re: Website Password Reset
« on: December 19, 2017, 09:37:03 pm »
You can't.
You get a username and password that is valid for one year when you buy a new license, or when you renew your license.

Geert

114
Bugs and Issues / Exclude filter does not exclude initial state node
« on: December 19, 2017, 07:48:53 pm »
When you set the exclude filter to exclude everything except for StateMachine and Activity then you still get entries for Initial Statenode entities.
Only after setting the element filter to ObjectType oneOf 'StateMachine','Activity' did it filter out the Initial nodes.

Geert

-- Reported --

115
<snip>.. (If I find out how to get it done without SQL I will post it)<snip>
You can't update PDATA fields (Miscdata) from the API.

Geert

116
General Board / Re: Can I set icon in the top-right of a class
« on: December 15, 2017, 10:48:57 pm »
The table icon is a decoration defined in a shapescript.

See http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/modeling_tools/example_scripts.html

Geert

117
General Board / Re: Shapescript. Color definition
« on: December 15, 2017, 09:25:03 pm »
use something like
Code: [Select]
     if (HasTag ("Trigger", "None"))
     {
               //set color here
     }

Geert

118
General Board / Re: Change attribute type menu
« on: December 15, 2017, 09:10:40 pm »
but whatever you do, "int" will always be the default  :-X

Geert

119
General Board / Re: Shapescript. Color definition
« on: December 15, 2017, 09:09:51 pm »
I'm not sure if it has anything to do with the DrawParentShape() itself. Might be a problem with the archimate shapescript.
As we know these aren't the best written shapescripts ever. (the ones from BPMN are much much better)

Geert

Pages: 1 ... 6 7 [8] 9 10 ... 525