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.


Topics - bITs.EA

Pages: [1] 2 3
1
Hi

In my shapescript, I want to define a default fill color (eg. setFillColor(255,255,255) ) for my shapes, but my users need to be able to change the colors when they design a model. Is there a way to achieve this with shapescript? Or do I need to use the "default" colors and forget about my default fill color?

Thanks

S

2
Hi

I have a simple shapescript for a stereotype with metaclass "ObjectNode":

Code: [Select]
shape main
{
noshadow="true";
fixedAspectRatio="true";

SetFillColor(255,255,255);
defsize(20,20);
startpath();
moveto(50,0);
lineto(75,50);
lineto(50,100);
lineto(25,50);
lineto(50,0);
endpath();
//StrokePath();
FillAndStrokePath();
}

When I use this element, the shape is drawn as expected. BUT the name of the element is shown below the shape. How can I 'hide' the name?

3
Hi

Is it possible to add a gradient property to a "fill-command"? Nativeshapes have gradient in their color, but custom shapes don't...

Thanks

Grts

S

4
Hi

Can anyone explain why the following code isn't working? (the native shape turns red, but the border doesn't change to "dashed")

Do I need to change the function "SetLineStyle"?

Code: [Select]
shape main{
SetLineStyle("dash");
SetFillColor(255,0,0);
DrawNativeShape();
}

Grts

S

5
Hi

I'm creating a new model with MDG, but I was wondering: is there some kind of reference guide explaining all the different metaclasses and the 'consequences' when you chose one of them? Because now it's rather difficult to know what to choose in the long list.

Grts

S

6
Bugs and Issues / SQL search with 'union'
« on: July 14, 2016, 12:15:25 am »
Hi

I'm trying to do a UNION search, but I don't get any results. The 2 separate queries give me the expected results, but using UNION doesn't seem to work. EA isn't giving an error either.

Code: [Select]
(SELECT p.Name AS 'Process', o.stereotype AS 'ElementType', o.Name AS 'Element', null AS 'Opgenomen in Project?', null AS 'Owner?'
FROM t_object AS o INNER JOIN t_package AS p ON o.package_ID = p.package_ID
WHERE
o.package_ID IN (SELECT package_ID FROM t_package WHERE parent_ID = (SELECT package_ID FROM t_package WHERE name = 'Bedrijfsleiders'))
AND
o.StereoType <> ''
ORDER BY 'Process', 'ElementType')

UNION

(SELECT d.Name AS 'Process', 'Document' AS 'ElementType', o.name AS' Element', null AS 'Opgenomen in Project?', null AS 'Owner?'
FROM (t_object AS o INNER JOIN t_diagramobjects AS do ON o.object_ID = do.object_ID) INNER JOIN t_diagram AS d ON do.diagram_ID = d.diagram_ID
WHERE o.package_ID = (SELECT package_ID FROM t_package WHERE name = 'Documenten')
ORDER BY 'Process')

Can someone give me some advice?

Grts

S

7
Hi

I'm trying to do a checkout (in batch) via a script. It seems to work, but I don't understand why the "Import package dialogue box is shown instead of the normal "checkout" dialogue box.

1) Is this normal behaviour?
2) how can I do a "undo checkout" via scripting? (I can't find a function in the manual...)


8
In the code below, I select objects with a certain stereotype (in reality, all these objects are packages). This results in a collection of elements (which are also packages).

How can I convert the Element to a Package? (Package to Element is possible via "Package.Element", but I can't find the opposite in the manual...)

Code: [Select]
dim collection as EA.Collection

dim sql, count, testTxt
sql = "SELECT t_object.Object_ID FROM t_object WHERE t_object.stereotype = 'ProcessLevel4'"
count = 0
testTxt = ""

set collection = Repository.GetElementSet(sql, 2) '= collection of Package ELEMENTS (no collection of packages)

for each packageElement in collection
'Store name and stereotype of package Element
testTxt = testTxt & vbcrlf & packageElement.Name & "-" & packageElement.StereotypeEx

'Get diagrams in Package

'TO DO: convert Element to Package to get diagrams in package

next

Msgbox "# = " & collection.Count & vbcrlf & vbcrlf & testTxt

9
Automation Interface, Add-Ins and Tools / Change stereotype in batch
« on: April 11, 2016, 09:38:00 pm »
Hi

I want to change the stereotype of a large number of elements. I want to be sure that all the tagged values of the new stereotype are automatically added to all elements. What is the best way to execute this action?

I've found an old topic about this question (http://sparxsystems.com/forums/smf/index.php/topic,23020.msg192337.html), but I want to know if there are already other options in the newer versions of Enterprise architect...

Thanks!

S

10
Simple question: is it possible to save certain stereotypes in a specified package?

Eg. I've created a new stereotype "pain point" and I want to store them automatically in the "pain point package". My problem is the pain points can be created on many different locations and some will be used on different locations too. So I want 1 repository (= package) of pain points.

Is this possible in EA?

11
Hi

I've created a custom Shape Script, but now I want to add an extra compartment showing the "package contents" (if this is selected in the diagram properties)...

This is my current shape script, but I can't find the needed info in the user guide to add the deparment. Can someone help me, please?

Code: [Select]
shape main{

noshadow = "TRUE";
h_align = "center";
v_align = "center";

if(hastag("Macroprocess Type","Management"))
{
setfillcolor(0,204,255);
}
if(hastag("Macroprocess Type","Primary"))
{
setfontcolor(255,255,255);
setfillcolor(0,43,255);
}
if(hastag("Macroprocess Type","Supporting"))
{
setfillcolor(142,237,255);
}


startpath();

moveto(0,0);
//lineto(15,50);
lineto(0,100);
lineto(85,100);
lineto(100,50);
lineto(85,0);
lineto(0,0);

endpath();

fillandstrokepath();
printwrapped("#NAME#");

}

12
Bugs and Issues / Import issue: overwritten records
« on: March 16, 2016, 08:46:12 pm »
Hi

Yesterday, I tried to import an old repository (via import / export XML) into a new one. I imported the XML in a seperate "Archive" package, but nevertheless the import impacted lots of other packages:
- References to version control files changed to old references
- Package contents of packages which already existed in the old repo were overwritten with the old contents (so I lost content!!)
- Some packages are now a merge between old and new

1) Is there a way to 'revert' the repository to a state before my import?
2) Is there a way to appoint another version control XML to a package and import those contents?

Thanks for the help!

Grts

S

13
I would like to have a feature which makes it possible to decide which stereotypes are shown in a package element (when you drag a package onto a diagram).

It's already possible to decide which operation/attribute stereotypes are shown in a class element, so could this be extended to the package element?

14
General Board / Disable BPMN 2.0 validation rules
« on: November 11, 2015, 10:28:09 pm »
Hi

I'm creating a BPMN model and I want to draw a sequence flow that isn't BPMN 2.0 compliant. EA shows a message that this isn't a valid flow.

Is there a way to disable these validations? Sometimes I need to create a non-compliant design :)

Greets

Stijn


15
General Board / EA books bundle
« on: April 29, 2014, 07:06:47 pm »
Hi qwerty!

I address this thread to qwerty, because I think he is the author of several EA books, so I think he can help me... (Tried PM, but didn't work)

I was wondering if there is a bundle with all your books (including the "Shape script made easy")? I can only find a bundle with the older books...

Greets

S.

Pages: [1] 2 3