RE: [CONNECT C++] ISprite::CreateFromIconResource()
[quote user="Bruce Reeves SRNS"]I don't see ISprite::CreateFromIconResource()[/quote]MicroStationAPI help has this...A Sprite, corresponding to a native Window manager icon.Generally loaded once at...
View Article[CONNECT C++] ISprite::CreateFromIconResource()
I don't see ISprite::CreateFromIconResource() in CONNECT. Is there a replacement? It "does" seem to be part of DgnPlatform.lib. It seems that CreateFromIconResource() *was* a Static Public Member...
View ArticleManipulating Reference File Display
Hi -Our team would like to use the "Publish Displayed Attachments Only" option in iModel publishing. To help streamline the process I would like to prepare two vba scipts (or any other language) which...
View ArticlePromis-e progamming
Does anyone have a code example in vb.net or microstation vba that can scan for a certain symbol in promis-e by name and delete it. I've been away from this project for a while and can't seem to figure...
View ArticleRE: Microstation VBA Cell AND SharedCell subelements modification
[quote user="Michal Kurzewski"]I might be missing something [/quote]When you place a normal cell, MicroStation copies its component elements from the cell library. When you drop a normal cell, either...
View ArticleMicrostation VBA Cell AND SharedCell subelements modification
Hello I inherited few drawings with overly complicated cells. investigating cells shows multiple level deep elements (cells, solids, lines etc) same thing goes for Sharedcells. Printouts are total mess...
View ArticleRE: [V8i VBA] Finding Tangent Vector of point on an element
[quote user="Barry Lothian"]I want the cells to be placed with a CCW rotation so that they are perpendicular to the element[/quote]Is your DGN model 2D or 3D? In 2D perpendicular means 'either side...
View ArticleRE: [V8i VBA] Finding Tangent Vector of point on an element
Evening Jon, It would a be 3D model. Assuming the direction from the start point of the element towards the end point defines a local X-axis to the element, the cell is to be rotated 90 degrees CCW...
View Article[V8i VBA] Finding Tangent Vector of point on an element
I have this cell:and upon placement in a model its orientation is set using matrixidentity and looks like this:Whereas I want the cells to be placed with a CCW rotation so that they are perpendicular...
View ArticleRE: [V8i VBA] Finding Tangent Vector of point on an element
[quote user="Jon Summers"]However, in order to visualise what is going on, it can be useful to create a real B-Spline curve that you can see and manipulate.[/quote]Right, so I just converted the...
View ArticleRE: [v8i MDL] Writing data from XML to database
[quote user="Sedat Alis"]I can prepare a XML from a database table as shown below. Is there a way to write XML data to a database table?[/quote]Your code shows how you build an XML fragment from an SQL...
View ArticleRE: [V8i VBA] Finding Tangent Vector of point on an element
I confirm that the VBA method EvaluatePointTangent doesn't work as expected. The computed point does not correspond to parameter u except when u = 0 and u = 1. At intermediate points the computed...
View ArticleRE: [v8i MDL] Writing data from XML to database
Thanks Jon. Very good idea. :) I am using Access 2000 database. I want to automate import process in MDL. I hope Access Runtime 2000 XML import tool give me a chance to trigger it.
View Article[v8i MDL] Writing data from XML to database
Hi,I can prepare a XML from a database table as shown below. Is there a way to write XML data to a database table easily (like deserialization in C#)?// Prepare XML from database tablePrivate int...
View Article[V8i VBA] B-Spline Curve Methods broken?
I'm attempting to use BSplineCurve.EvaluatePointTangent. It seems to yield incorrect results. I want to find curve parameters at a point on a B-Spline curve. EvaluatePointTangent computes a point in...
View ArticleRE: [CONNECT C++] ISprite::CreateFromIconResource()
[quote user="Jon Summers"]However, I can't find mention of that method anywhere in the documentation or header files.[/quote] Maybe when the next SDK arrives, this will be included/fixed....
View ArticleRE: [CONNECT C++] Changes to mdlView_pointToScreen from SS3
Hi Bruce,I know almost nothing about C++ but is your function declaration missing an open parenthesis?(or forum code paste maybe?)void UpdatePosition(DgnButtonEventCR ev)Its probably highly unlikely...
View ArticleRE: [CONNECT C++] Changes to mdlView_pointToScreen from SS3
Bruce,Can you try the code below and see if you get the same result as when using mdlView_pointToScreen?DPoint3d screenPt; ev.GetViewport()->ViewToScreen(&screenPt, ev.GetViewPoint(), 1);...
View ArticleRE: [V8i VBA] Finding Tangent Vector of point on an element
Afternoon Jon,[quote user="Jon Summers"]I confirm that the VBA method EvaluatePointTangent doesn't work as expected. The computed point does not correspond to parameter u except when u = 0 and u = 1....
View ArticleRE: [CONNECT C++] Changes to mdlView_pointToScreen from SS3
Yes - the results are the same. In using your test case above, I did NOT include a call to mdlView_pointToScreen().
View Article