<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Kirill S.'s Communities Activities</title><link>https://communities.bentley.com/members/7d27774c_2d00_4117_2d00_4a82_2d00_a6c1_2d00_13ded54f684d</link><description>Recent activity for people in Kirill S.'s community</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>aaapi function to open document set content window</title><link>https://communities.bentley.com/products/programming/projectwise_programming/f/projectwise-programming---forum/169760/aaapi-function-to-open-document-set-content-window</link><pubDate>Mon, 22 Oct 2018 16:34:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:38f09fe3-e758-46e1-8919-6f1812e8982b</guid><dc:creator>Kirill S.</dc:creator><description>&lt;p&gt;Which aaapi&amp;nbsp;function should be used in order to open a&amp;nbsp;content window for flat document set?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Currently, I&amp;#39;ve figured out how to call dialog for&amp;nbsp;simultaneous&amp;nbsp;modification of multiple sets&amp;nbsp;&lt;/p&gt;
&lt;p&gt;aaApi_ModifySetContentDlg ( hwnd, NULL, mProjId, setSetId ); - it also can be observed after clicking context menu =&amp;gt; set =&amp;gt; modify...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does anyone know some&amp;nbsp;special call to open content window for particular flatset (it pops up after&amp;nbsp;&lt;span&gt;clicking context menu =&amp;gt; set =&amp;gt; content)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://communities.bentley.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Mon, 09 Oct 2017 03:11:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3ad646a9-a9f8-4f13-a855-f959421a84c5</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>get projectwise Guid property of Attachment document in C# AECOsim plugin</title><link>https://communities.bentley.com/products/programming/projectwise_programming/f/projectwise-programming---forum/141737/get-projectwise-guid-property-of-attachment-document-in-c-aecosim-plugin</link><pubDate>Mon, 09 Oct 2017 18:13:06 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:12bf0c04-d7fb-43fa-8517-c5c5c58ca1e8</guid><dc:creator>Kirill S.</dc:creator><description>&lt;p&gt;Dear All!&lt;/p&gt;
&lt;p&gt;My task is to get &lt;strong&gt;Guid&lt;/strong&gt; property of Attachment dgn-file by C# AECOsim plugin.&lt;/p&gt;
&lt;p&gt;I tried with &lt;strong&gt;mdmMain_getReferenceDocument&lt;/strong&gt;, but it returns nothing...&lt;/p&gt;
&lt;p&gt;I have GUID stucture in C#:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;[StructLayout(LayoutKind.Sequential)]
public struct GUID
{
/// unsigned int
public UInt32 Data1;
/// unsigned short
public UInt16 Data2;
/// unsigned short
public UInt16 Data3;
/// unsigned char[8]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public Byte[] Data4;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;DllImport function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;[DllImport(&amp;quot;mcmapi.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
public static extern int mdmMain_getReferenceDocument(
out IntPtr plProNo,
out IntPtr plDocNo,
out GUID docGUID,
[MarshalAs(UnmanagedType.LPWStr)]
string pchFileName
);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And in main code I use:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; &lt;pre class="ui-code" data-mode="csharp"&gt;IntPtr pProjectId = new IntPtr();
IntPtr pDocumentId = new IntPtr();
GUID pDocGUID = new GUID();
string FName = Attachment.DesignFile.FullName;

var res = mdmMain_getReferenceDocument(out pProjectId, out pDocumentId, out pDocGUID, FName);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;But &lt;strong&gt;res&lt;/strong&gt; returns &amp;quot;-1&amp;quot; and all fields of &lt;strong&gt;pDocGUID&lt;/strong&gt; returns &amp;quot;0&amp;quot;.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s wrong? Is there any proplem with marshalling?&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Value of attribute from custom function</title><link>https://communities.bentley.com/products/programming/projectwise_programming/f/projectwise-programming---forum/94690/value-of-attribute-from-custom-function</link><pubDate>Mon, 17 Feb 2014 10:04:17 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c1695fc9-34e0-4970-960a-1a0c609bf2d6</guid><dc:creator>Kirill S.</dc:creator><description>&lt;p&gt;Dear all&lt;/p&gt;
&lt;p&gt;I would like to know the structure (prototype) of the function in custom dll, which used&amp;nbsp; get a value for attribute.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/communityserver-discussions-components-files/342995/pwsdk.jpg"&gt;&lt;img src="/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/342995/pwsdk.jpg" alt=" " border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What interesting for me: can I know from which document and for which attribute my custom function were called?&lt;/p&gt;
&lt;p&gt;If my function prototype looks like:&lt;/p&gt;
&lt;p&gt;extern &amp;quot;C&amp;quot; LONG WINAPI Test&lt;br /&gt;(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ULONG&amp;nbsp;&amp;nbsp; ulMask,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // i Application Mask&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPVOID&amp;nbsp; lpReserved&amp;nbsp; // i Reserved (must be NULL)&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;, then all two parameters were initialized by PW with null values.&lt;/p&gt;
&lt;p&gt;Any help would be appreciated!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>