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 - Michael Proske

Pages: 1 ... 3 4 [5]
61
During RTF generation i use the flag Use style defined in templates for notes. The result is that i get a lot of variants of the normal word style. Sometimes with different space between lines always with the font included etc. Instead of having one normal style i have twenty of different ones. Same is when integrating linked documents.

Any idea where this comes from or how to get rid of it ?

62
Hi
Have you added the tagged value with the technology name in front ? This caused problems when i added changed tagged values to my items.

63
Automation Interface, Add-Ins and Tools / Re: Access profile data from AI
« on: September 17, 2010, 11:19:22 pm »
I think it is not possible the select active technologies from a database because technologies are independent from a specific eap or database file. I think the only way to find out is to write a plugin and react on the Technology events like EA_OnPreActivateTechnology. From that point on you can load the profile data.

The following code just gives a hint how to load in the file
        public void open()
        {
            //  XmlTextReader m_handle = new XmlTextReader(m_technology);

            m_xmlDoc = new XmlDocument();
            m_xmlDoc.Load(m_technologyName);
            m_stereotypeList = new List<Stereotype>();
            XmlElement root = m_xmlDoc.DocumentElement;

            XmlNodeList profiles = m_xmlDoc.SelectNodes("//UMLProfiles/UMLProfile/Documentation");
            foreach (XmlNode profile in profiles)
            {
                XmlNodeList stereotypes = profile.SelectNodes("../Content/Stereotypes/Stereotype");
                //Select Stereotype attribute
                foreach (XmlNode stereotype in stereotypes)
                {
                    XmlNode apply = stereotype.SelectSingleNode("./AppliesTo/Apply");
                    if ((apply != null) && apply.Attributes.GetNamedItem("type").Value == "ToolboxPage") continue;
                    Stereotype st = new Stereotype();
                    st.Technology = profile.Attributes.GetNamedItem("name").Value;
                    st.Name = stereotype.Attributes.GetNamedItem("name").Value;
                    if (apply != null) st.Apply = apply.Attributes.GetNamedItem("type").Value;
                    try
                    {
                        st.Generalize = stereotype.Attributes.GetNamedItem("generalizes").Value;
                    }
                    catch { }
                    XmlNodeList taggedValues = stereotype.SelectNodes(".//TaggedValues/Tag");
                    foreach (XmlNode tag in taggedValues)
                    {
                        st.taggedValues.Add(tag.Attributes.GetNamedItem("name").Value);
                    }
                    m_stereotypeList.Add(st);
                }
            }
        }

I will create a plugin project and post it here in the forum so you can play a little bit with the functinality

Michael

64
Try to read the profile data with an xml reader from the technology file. You have to write your own addin to get access. I used these to have update my own profile data with new tagged values. if you like i can send you the c# code.

65
No that is not possible

If you try this write a word plugin that do this for you and transform the file if its opened in word or what you use as office tool

66
Hello
I want to print tagged values in shape script. script look like the following

shape main
{
      rectangle(0,0,100,100);
 
      addsubshape("domaincompartment", 100, 33);
      addsubshape("orgcompartment", 100, 33);
      addsubshape("usercompartment",100,34);
      shape orgcompartment
       {
               h_align = "center";
                   v_align = "center";
                   moveto(0,0);
                   lineto(100,0);
               printwrapped("#TAG:SIARC::Organization#");
       }

       shape domaincompartment
       {
                   v_align = "center";
               h_align = "center";
               println("#TAG:SIARC::Domain#");
       }
       shape usercompartment
       {
                   v_align = "center";
               h_align = "center";
                   moveto(0,0);
                   lineto(100,0);
               println("#TAG:SIARC::Users#");          
       }
}

SIARC is a technology name. Everything works fine for Users and Domain. But Organisation is empty. The definition is

Type=RefGUID;
Values=Class;
Stereotypes=BMM_OrganizationUnit;

Is this a bug or is something wrong.

Michael

67
You have to create the technology and to export the profile again with 8.0 because someting in the xml format changed. Old technologys works incompletely.  Just generate it again there is no change in the technology or profile definition.

68
I think the column you search for is called TPos in the t_object table.  

69
Automation Interface, Add-Ins and Tools / Re: Ghost Tagged Value Issue
« on: March 13, 2010, 03:56:58 am »
Hello

Have you found a solution for the problem. I think a try the same thing than you. Which value does these EAP_... Literal has.

Regards Michael

70
Automation Interface, Add-Ins and Tools / Re: Custom QuickLink Problems
« on: December 07, 2009, 11:38:39 pm »
Where did you place the information. First time i put it in the notes property of the document and i got no result. You have to create a linked documemt first and put the information in the linked document.

Maybe that helps. If not i can send you an example of a profile with quick link information.

71
I'm not really sure but do you know how to create an RTF Template ? If not just read the White Paper for it. In my eyes the template is very simple.
If you have problems with the template i can send you a very simple one.

72
Maybe i did not understand the procedure but the problem i have is the following. I created an MDG Technology and selected some images to be transferred. The images have been imported as EMF metafiles. I copy the technology just under my EA folder under MDGTechologies and open a new EA File. I can find all my profiles, models, RTF Templates etc. but the images are not visible under reference data.

If i import the technology in addition the images are visible.

Do i misunderstand the procedere or is this a bug.

Thanks for answers in advance
Michael  

Pages: 1 ... 3 4 [5]