Hi All,
I am having issues with Moving a Reference file.
I am trying to Insert the Default Model into a Sheet Model, Scale it, then Move it to around the location of the Drawing Sheet (XY = 18,50)
The Code...
Set oRef = ActiveModelReference.Attachments.Add(sFileToImport, "Default", "DistributionDesign", "Design Extract", oPoint, oPoint) oRef.Redraw msdDrawingModeEraseoRef.ScaleFactor = 0.5 oRef.Rewrite oRef.Redraw msdDrawingModeNormal Dim distance As Point3d oRef.Redraw msdDrawingModeErase Dim oOrigin As Point3d oOrigin.X = 18 oOrigin.y = 50 oOrigin.z = 0 distance = Point3dSubtract(oOrigin, oRef.Range(True).Low) oRef.Move distance, True oRef.Rewrite oRef.Redraw msdDrawingModeNormal
It is moving the reference, but not as it should. I want the lowest part of the Reference File - which according the Default Model is (952082.7161, 6242208.3894), to move to (18, 50).
What it does, is moves the 0,0 point to 18,50
I have attached the DGN for reference.
Any help would be appreciated. I don't know what I am doing wrong
Thanks in Advance!
Unknown said:I notice that it has a master model (the map) and a sheet border model. Is that how SmallWorld exports it?
Sorry, the default model is straight from SmallWorld, I have added a sheet model with Title Block. But this file now works for me too... I don't understand why? All others don't seem to...
Attached is a straight extract from SmallWorld, which hasn't been touched
I had a play around with different options for Sheet Models to see if that was the issue. Instead of creating it from my seed, i would use the normal "Create Sheet" function and do everything through MicroStation tools, but same result. I even checked another PC to see if it was an issue with my MicroStation install.
I Have tried to Clip the Default model to certain parts of the Default Model then do the process manually. Still same result.
Im leaning towards the idea of the Files - or perhaps the seed from SmallWorld is corrupt
Unknown said:I'm leaning towards the idea of the Files - or perhaps the seed from SmallWorld is corrupt
If you're seeing that problem consistently, I suggest that you submit a TR to Bentley Systems, with a SmallWorld DGN file as evidence. See what they can make of it. If they can definitively say what's wrong with it, you can (a) firstly send it back to SmallWorld for them to fix their DGN exporter and (b) secondly devise a work-around that solves the problem for bad SmallWorld DGN files.
Regards, Jon Summers LA Solutions