Hello guys,
I've been wondering if I could call a specific .src or .dgnlib file using a batchprocess script in order to upload a dgn file with the line style library and level library of my choice. I am struggling with the command line as I am not sure that you can call those file with a command line.
Does any one would know or have any idea on how could I do that?
Thank you anyways.
Hi Damien,
DAMIEN D'ORAZIO said:if I could call a specific .src
What is .src format?
DAMIEN D'ORAZIO said:to upload a dgn file with the line style library and level library of my choice
I do not understand what do you want to achieve.
Level definitions and styles are maintained in dgnlib files, defined in active workspace/workset configuration. They are not "uloaded" to dgn file, but copied (cached) automatically when they are used for the first time.
Do you want to import (copy) levels and styles into dgn file(s)? I think it breaks the concept of dgnlib files, when available settings are available (displayed) to user, and maintained by MicroStation automatically, when used.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
I meant a .rsc file I mispelled it, in fact I want to change the line style, the thickness and the color of a dgn from a rsc file and a dgnlib which are not already "added" to the dgnlib (it has to work on a computer which is not mine, ergo that doesn't have the same dgnlib that I have on my computer).
So what I wanted to do, was to add the library that I have created with the help of a command line, if such a thing exists, into a dgn file.
I need clarification.
Why are you trying to change linestyles to a resource you don't even have?
You can always send the resource along with the DGN so that the other person can add it to their configuration. Clients send me their resource files all the time when I work on their projects, and I do the same for our people working on our projects.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
Hello Mary,
The goal is basically to change linestyle and color and thickness of some level inside a bunch of dgn.
Lets say the person who is gonna handle the dgn just need the dgn ready to go with a level A with some elements like with the color 7 a line thickness of 6 a line of 6 and a particular linestyle from my .rsc.
The person has a dgn that needs to be transformed because the levels name and characteristics won't work for the tool is using.
So the dgns that need to be transformed, let's say that all the dgn as the same level B and C that need to be "merged" into the level A (of the transformed dgn). for example all teh dgns contains
a level B with some elements with random features let's say color 3 a line thickness of 1 and a linestyle 0
a level C with elements with other features.
Now the goal of the batchprocess script that I want to make is
get those levels (B and C) into the new level A with the features described earlier.
I can level purge the level but I don't know how to change the features and I was thinking to "call" or "add" my rsc file which contains the right linestyles with some command line in order to have a transformed dgn with the features of the level A.
But may be it is not possible and then I have to setone by one the features with command line for the elements of the level A in my script. You have to keep in mind that this is not just for 1 level but like 10 or 20. Therefore I think of a way to add my .rsc via the batchprocess script.
I hope, you'll get the clarification otherwise my case is desperate ;-). And if there is a way to send the resource along and if there is a way to add it automatically or just one time. I am all ears for your suggestions.
Hi Damien
I'm not sure why you are wanting to use the Batch Processor via the Command Line as your go to method of attack. If I understand the situation correctly, you are intending to make alterations to the files and then send them to whoever the other person(s) is/are?
In which case, I would advise you use the Batch Processor from the dialog, the only minor complexity depends on if you are using ByLevel symbology for the levels.
If you are:
The above will open the files, remap elements from a source level to a destination level, deletes unneeded levels, set's the elements (on all levels) back to the assigned ByLevel Colour, ByLevel Linestyle and ByLevel Lineweight. You can remove the entries in bullet points 1 & 2 if they aren't needed afterwards, when you are done updating the DGN files.
Next, send the DGN, DGNLIB (Levels), RSC(Linestyles) files to whoever, and have them:
If you aren't using ByLevel Symbology then you will need to arrange your keyins within the command file, in a logical manner to change the elements symbology.