Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Browsing all 7260 articles
Browse latest View live

RE: [CONNECT C++] Text/properties/formatting

Do you mean the Font Size? You are setting it. Make sure you are setting the Font Size as the master units multiplied by UorPerMaster. It is hard to figure out whats wrong with your code when you don't...

View Article


RE: [CONNECT C++] Text/properties/formatting

[quote user="Zhen Li"]I used "textblock" created a string of text. I found out that the text length and width are zero[/quote]You've omitted, as seems to be your habit, the line of code where you add...

View Article


RE: [V8i MicroStationAPI] ElementFacetSet

[quote user="Jon Summers"]So if my class implementsvirtual int GetMaxPerFace () { return 3; }then I'll get triangles?[/quote]In theory, yes. :)-B

View Article

[V8i MicroStationAPI] ElementFacetSet

The ElementFacetSet class provides plenty of information about the facets it holds.  Unfortunately the methods that reveal the information are sparsely documented in MicroStationAPI help.For...

View Article

RE: [CONNECT C++] Text/properties/formatting

Hi, I created textblock. But they are so tiny I did not notice them before. I think the fontsize is not set correctly. The result is that text's "Formatting" "Length" and "Width" are zero. Thanks

View Article


RE: [CONNECT C++] Text/properties/formatting

Hi, Thank you for your reply. What is "UorPerMaster"?

View Article

RE: [CONNECT C++] Text/properties/formatting

UOR is the Units of Resolutiondouble mdlModelRef_getUorPerMaster ( DgnModelRefP modelRef ) Gets the number of uors per master unit for a model. Parameters [in] modelRef get the property of the model...

View Article

RE: [CONNECT C++] Text/properties/formatting

Hi, MauryI finally can see my text after I apply Units of resolution. But I have another problem.The location of the text is not right. I used following code to set location. If I use the same unit, it...

View Article


RE: [CONNECT C++] Text/properties/formatting

The Point you are specifying must be in UOR. Maybe you need to adjust for the global origin as well. If you keyin "go=" without quotes, does it say the global origin offset is 0.00,0.00,0.00 ? There is...

View Article


RE: [CONNECT C++] Text/properties/formatting

[quote user="Zhen Li"] What is "UorPerMaster"?[/quote]You need to study MicroStation's coordinate system.  Master Units are what a user sees: for example, metres (m).  Sub-units are some useful...

View Article

RE: [CONNECT C++] Text/properties/formatting

Yes, the global origin offset is 0.00,0.00,0.00. I used "mdlText_create( pElement, NULL, WTxtString, &Point, &Matrix, &TextSize, &textParam, NULL, model );" to create text to have no...

View Article

RE: [CONNECT C++] Text/properties/formatting

Everything you need has been listed above. If your text is not showing up in the wrong place, then you are giving it the wrong coordinate.  Do as Jon suggested and spend some time in the...

View Article

[CONNECT C++] Text/properties/formatting

Hi,I used "textblock" created a string of text. I found out that the text length and width are zero (from text property/formatting). I used following code. TextBlockPropertiesPtr tbProps =...

View Article


[CONNECT C++] Sprites

How do we create Sprites under connect?I believe the function used to load these under the V8i SDK was Bentley::Ustn::ISprite::CreateFromIconResource (int rscId, void *hInstance).There was also a...

View Article

RE: [CONNECT C++] Sprites

[quote user="wilks"]How do we create Sprites under connect?[/quote]Search MicroStationAPI help for sprites.  There's quite a bit of useful documentation, including an overview...Sprites are (typically)...

View Article


RE: [CONNECT C++] Sprites

Thanks Jon. Hopefully someone from Bentley can shed some light on the recommended approach. Using pure geometry sounds like a step in the right direction by eliminating some overhead.

View Article

RE: [CONNECT C++] Sprites

I suggest that you remove the Verified Answer status from my response.  We need someone from Bentley Systems to tell us about IViewManager::LoadSpriteFromRsrc or its replacement.  If the question is...

View Article


Image may be NSFW.
Clik here to view.

RE: [CONNECT C++] Sprites

I too have asked this question.  Hopefully someone at Bentley will provide more insight... Bruce

View Article

RE: [CONNECT C++] Single line of text string

Have you looked into using VBA?

View Article

RE: [CONNECT C++] Single line of text string

No, I did not. I am using C++. Can a "TextString" be converted to an Element? Thanks,

View Article
Browsing all 7260 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>