RE: [CONNECT - AddIn] Place cell from cellibrary
If I create a new DGN file I can place the cell as a shared cell manually but afterwards it is still not possible to place the cell using my test application. If I create another new DGN file and run...
View ArticleRE: [CONNECT - AddIn] Place cell from cellibrary
I'm unable to diagnose any more. Can you bundle your code into a minimal project and post it so we can take a closer look?
View ArticleRE: [CONNECT - AddIn] Place cell from cellibrary
My code now looks like this:string cellName = "BRND"; bool sharedCellDefPresent = false; SharedCellDefinitionCollection cellDefColl =...
View ArticleRE: [CONNECT C++] mdlWindow_nativeWindowHandleGet
Thank you for your answers Jon and Paul. mdlNativeWindow_getWindowHandle returns a zero value. mdlDialog_overallTitleBarGet returns a non zero value. mdlNativeWindow_getMainHandle seems to work....
View Article[CONNECT C++] mdlWindow_nativeWindowHandleGet
Hello,I use the routine below with CONNECT in a .cpp source:extern "C" HWND fenetre_principale_hwnd(){ HWND hwnd; if (mdlWindow_nativeWindowHandleGet(&hwnd,...
View ArticleRE: [C++ V8i] Replicating the Facet Curve - Equal Chord Length method
Hi Brien, Thanks for the response! No, it is an open curve. Any idea what the tool is using for the chord length value?
View ArticleRE: [CONNECT - AddIn] Place cell from cellibrary
*Edit* I see what you are doing with the shared cell definitions, I have not worked with shared cells before */Edit*Is your cell a shared cell or is it part of a cell library you are attaching?
View ArticleRE: [C++ V8i] Replicating the Facet Curve - Equal Chord Length method
Ah, I was looking at the code for fixed chord length, the equal chord length method calls an unpublished function.MSCORE_EXPORT int mdlBspline_computeEqualChordByNumber(Dpoint3d *pointsP, /* <=...
View ArticleRE: [C++ V8i] Replicating the Facet Curve - Equal Chord Length method
Based off the example I posted, I would think to get equal size segments, but the last segment was always shorter than the rest.
View ArticleRE: [C++ V8i] Replicating the Facet Curve - Equal Chord Length method
B, Thanks for the unpublished function, but I get an unresolved external symbol if I add the export. Do i need to include a lib other than msbspline.lib?
View ArticleRE: [CONNECT - AddIn] Place cell from cellibrary
[quote user="Maury"]Is your cell a shared cell or is it part of a cell library you are attaching?[/quote]All cells start off in a cell library. The library doesn't differentiate between normal and...
View ArticleRE: [CONNECT - AddIn] Place cell from cellibrary
Thanks for the insight Jon, That is good to know going forward.As for the above example,I see that if no definition is found, it is creating the shared cell definition, but there is no elements being...
View Article[CONNECT - AddIn] Place cell from cellibrary
I want to perform a very simple task - place a cell from a celllibrary. I got this code:DPoint3d origin = new DPoint3d(100000,100000); DPoint3d scale = new DPoint3d(10,10,10); SharedCellElement cellElm...
View ArticleRE: [C++ V8i] Replicating the Facet Curve - Equal Chord Length method
Leave off the MSCORE_EXPORT for V8i (that's from Connect). This function is in msbspline.lib the same as mdlBspline_computeEqualChordByLength so you should be able to call it.
View ArticleRE: [C++ V8i] Replicating the Facet Curve - Equal Chord Length method
Thanks B,I have tried:Removing MSCORE_EXPORTPlacing the prototype at the top of my file (does not compile, unresolved symbol),Placing the prototype at in the msbsplin.fdf (compiles but silently stops...
View Article[C++ V8i] Replicating the Facet Curve - Equal Chord Length method
Hi Everyone,I am looking to replicate the equal chord length method in the Facet Curve microstation tool.Currently I am using mdlBspline_computeEqualChordByLength() and specifying a chord length equal...
View ArticleRE: [C++ V8i] Replicating the Facet Curve - Equal Chord Length method
[quote user="Maury"]Placing the prototype at the top of my file (does not compile).Placing the prototype at in the msbsplin.fdf compiles[/quote]When you get compiler errors Visual C++ identifies them...
View ArticleRE: [C++ V8i] Replicating the Facet Curve - Equal Chord Length method
Hi Jon, At this point, I am just trying to get it working and not so worried about the location of the prototype. Sorry, I had meant linker error, not compiler error! I am aware that the unresolved...
View ArticleRE: [CONNECT - AddIn] Place cell from cellibrary
Maury,I don't want to create a new cell. All I want is place a cell from a cellibrary. In V8i I would write something like:msApp.CreateCellElement2(sSymbol, ref ptOrigin, ref ptScale, true,...
View ArticleRE: [CONNECT - AddIn] Place cell from cellibrary
What happened to "CreateCellElement2" within the Connect edition? It is a part of the vba api and IMHO it hopefully should still work with the connect edition.
View Article