Per Artur Goldsweer, There is another CExpression: "plotUI.uiSysPrinterName" which returns the name of the selected printer. E.g. if the expression "plotUI.uiPrinterName" returns "Windows printer", the expression "plotUI.uiSysPrinterName…
Leo van der Hoeven said:So it looks like it's converted somewhere??
Not, it's the bug recorded as Defect #655078, when GetElementById returns outermost (parent) element, not the element itself. For more details, see e.g. this discussion.
Thank you very much Artur Goldsweer!
FYI. Adding Artur Goldsweer to this conversation to see if he can confirm these behaviors and file an additional defect related to VBA and worksets besides this unrelated behavior we hope to address in or before Update 16.
Defect 1077281:VBA Projects…
Hi Sebastien GOUBIER,
Do you mind letting us know (per our Community posting Best Practices) what exact version of MicroStation you are seeing this issue in?
Artur Goldsweer and I noticed autoload of MDL toolboxes behavior may have been corrected in code…
StruX said:but IsVertexList is always False
It means the object (SmartSolidElement) does not support (implement) this interface. It's the same result as in V8i.
StruX said:Any help would be greatly appreciated.
GetVertices method works in MicroStation…
Les Leayr said:Can confirm the change has not persisted
Can you package your DGN file and VBA project into a ZIP file and present them as evidence? Perhaps Artur Goldsweer or Yongan.Fu could take a look?
Roberto Cardosi said:This code throws following error
I simplified your DGN model (removed the cell) and VBA code...
Public Sub Main()
Dim id As DLong
id = DLongFromLong(4090)
Dim oHead As Element…
Peter Norvin said:I have tried to add the circle and line to the model, but it makes no dífferenc
You have a simple and reproducible problem. File a Service Request (SR) with Bentley Systems, submitting your VBA code as evidence.
Occasionally it's possible…
Travis Topperwien said:my response was not an attack on Bob, but on the lack of this issue being addressed by BDN management
Robert Hook, Yongan.Fu and Artur Goldsweer do a great job providing technical support.
BDN management is another question. The previously…
Artur Goldsweer created a simple MicroStation VBA search and replace macro for reference file drive letters or (starting) paths. It may provide a good starting point to get you going. See: Rename full path data of reference
It would be nice…
Artur Goldsweer performed a quick test (case) that we will review, recommend, or file a defect if appropriate. We will keep you posted once complete.
HTH,Bob and Artur
Donna Rodrick said:Why offer the Replace API
I have not used ReplaceInModel many times yet, but it has worked fine with all other element types.
Donna Rodrick said:and Set Value if they don't work?
I think SetValue method works fine, the changed instance…
Lars MP said:Fairly quick in Connect, and it does not explain the difference.
My measurement provides different results. When I measured how fast cell with 50x50 grid of shapes is created:
... that's a huge difference…
Hi Artur Goldsweer,
Can you review this post to confirm with a defect, provide recommendation, or if needed request a standard test case to ensure reproduciblility?
Thank you in advance,Bob