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 - Aaron B

Pages: 1 ... 54 55 [56] 57 58
826
Quote
The sequence position when loading into diagram (affects Z order). The Z-order is one-based and the lowest value is in the foreground.

According to the documentation, the lowest value is in the foreground, so it looks like you need to do your sequence numbering in the opposite direction.  I.e. Start with a higher zorder value and do '--' instead of '++'.

827
Also, make sure it's saved to a local drive (E.g. your C: drive).  Opening chm files over a network will also fail like you describe.
See http://support.microsoft.com/?kbid=896358

828
bittercoder,
EA 6.5 build 801 should be available very soon.  When it is released, please install and see if it resolves your issue.  If the problem continues, please submit a bug report with details on the issue
http://www.sparxsystems.com.au/support/bug_report.html

829
This issue should be fixed in the next build of EA (6.5.801).  If there are any problems after installing 801, please contact us again.

830
An Element.GetLinkedDocument() method has been implemented for build 801, which should hopefully be available soon.

831
I don't think this is a problem with EA's interface.  The problem here is that 'Scale' is unfortunately a keyword in VB.  To get around this, put square brackets around Scale and it should work.
e.g.   attrib.[Scale] = 1

832
I am not aware of any issues with reverse engineering Access 2003 databases.  As long as you have JET 4.0 enabled and have defined the connection correctly, I can't think of any reason why it might fail.  If you can send us a zipped copy of the database to support@sparxsystems.com.au (along with a description of the problem) we will see what we can do to help.

833
Thomas was on the right track, but you need to retrieve the EA.App object using the GetObject call.  For more information, see the EA.App reference page below:
http://www.sparxsystems.com.au/EAUserGuide/app.htm

HTH.

834
The ParentID is used when nesting elements within other elements in the tree.  As Midnight suggests, I believe that to move the element to another package you should set the Element.PackageID value.

835
No, it is not currently possible to select an element on the diagram window from automation.  You can currently only control selection in the Project Browser window by using Repository.ShowInProjectView(object).

836
Yes, MDG Link for DOORS needs to connect to a running instance of the DOORS application to import an open module.  It does not import directly from the file itself.

See the product page for system requirements:
http://www.sparxsystems.com.au/products/mdg_doors.html

Please refer to the help file included with the Add-In for more details on importing from DOORS.

837
micia,

It sounds possible that the information in DOORS might not be getting completely saved by the time you attempt to import, resulting in EA importing your 'old' data as this may be it's current state on disk.  Have you tried completely closing DOORS and re-opening again before importing?  If the problem still appears, can you please confirm which version of DOORS you are running?

838
GetCurrentDiagram should provide you with the currently opened diagram.  It is not affected by what is selected in the Project Browser window.  If you want to get the current selection in the Project Browser, regardless of the type, use Repository.GetTreeSelectedItem.  The object parameter should become set with the selected object, and the type enumeration will be given as a return value from the function.

For example:
Dim obj as Object
If (repository.GetTreeSelectedItem(obj) = otDiagram) Then
 Dim d as EA.Diagram
 Set d = obj
 ...
End If

See:
http://www.sparxsystems.com.au/EAUserGuide/repository3.htm
http://www.sparxsystems.com.au/EAUserGuide/objecttypeenum.htm

839
In the "Repository" documentation I just noticed it says that the AddTab method returns an IUnknown pointer, which may be the problem.  Try searching through google for information on using IUnknown in VB6.  Not sure how best to do it myself unfortunately.  :-[

My only other suggestion is to temporarily put "As Project1.UserControl1" on the end of the Dim statement to get back your Intellisense while writing code, then comment it out again before running.

Hope this helps.

840
Perhaps try assigning to a regular 'Object' first, then try casting it later.  See if that makes any difference.

Dim objTab
Set objTab = Repository.AddTab("Hello", "Project1.UserControl1")

If Not objTab Is Nothing Then
   Dim lMyUctrl As Project1.UserControl1
   Set lMyUctrl = objTab
End If

Pages: 1 ... 54 55 [56] 57 58