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

Pages: 1 ... 596 597 [598] 599 600 ... 607
8956
Not sure whether this behaviour is a bug....

But to rescue your tags you can dump the table t_objectproperties and restore the contents later. That should do it.

q.

8957
Or just the way show before vice versa:

- Create a file from the shape script and call it str.dat
- Zip that file
- Open it with notepad++
- Use Pugins/Mime/Base64 Encode
- Replace the resulting string in your MDG
(you can insert line breaks as you like to leave it as it is)

q.

8958
Quite simple:
- Select the base64 stuff including the last equal sign
- create a new file (ctrl-n)
- paste it
- select all
- invoke the decode
-> now it should look quite binary starting with PK...
- simply save as temp.zip to desktop
- unzip the file using pkzip

q.

8959
There's only room for a single script. Inside the script you need to decide what to do.

Regarding decode: First stage is base64 (notepad++ has plugins/mime tools/decode base64; copy the string to a new file buffer).  You need to unzip the result afterwards (you can save the decode and unzip externally). Inside is a str.dat with the shape script.

q.

8960
Well, I just moved one element into another by the following code:
Code: [Select]
$child = $rep->GetElementByGUID ('{6F6AB339-7D4A-41ef-B7EA-06C230810971}');
$newParent = $rep->GetElementByGUID ('{782D2EBB-49AA-4a98-A7C8-8834E2773EDC}');
$child->{ParentID} = $newParent->ElementID;
$child->Update();
So you just need to grab the single Elements inside the diagram and set the parentID.

q.

8961
Just a guess: I think you need to set the ParentID as you do AND to set the PackageID to zero.

q.

8962
Automation Interface, Add-Ins and Tools / Re: Automation using Python?
« on: February 09, 2011, 04:02:11 am »
The Perl adapter was created with ActiveState's Perl Development Kit (which is not as cheap as EA). However, if you don't want to buy that license you still can go with WSH to adapt Python (not sure whether I mentioned that on my community post).

I'd rather like to program with Python but already was too deep in Perl. Now I'll probably skip to Ruby...

q.

8963
Strange, however. Please Sparxians, would you document such things in your help before making it available in this way.

q.

8964
So its actually Repository.SynchProfile?

q.

8965
What? Where did you find this method???

q.

8966
Automation Interface, Add-Ins and Tools / Re: EA to DOORS
« on: December 14, 2011, 05:19:06 am »
Hmm. What would you do with sequence diagrams in DOORS???

q.

8967
Automation Interface, Add-Ins and Tools / Re: EA to DOORS
« on: December 14, 2011, 03:53:25 am »
Export as CSV. Import in DOORS via DXL.

q.

8968
You can try a hack: change the guid of the root package in the empty repository to that of the root package in the XMI (use repository.execute). When you import after the change the model is placed on root level.

q.

8969
If the algorithm is not published by Sparx I wouldn't give a cent for it's reliability. However, if your empirical research shows some stable behaviour you should simple use it.

But be warned: the next (major) release might change this. I have seen it with Package.Element which in earlier released returned ALL elements (including nested) but now only the first level elements are returned. IIRC neither is described in detail (current help: A collection of elements that belong to this package - this does not mention that embedded elements are not returned).

q.

8970
That was the sort of automatic search I hoped for :-)

q.

Pages: 1 ... 596 597 [598] 599 600 ... 607