Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Programming with Microstation > Re: Filter DGN'...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 416 of 473
Post > Topic >>

Re: Filter DGN's by element tag

by Daniel MacNeil <dan_dot__42@[EMAIL PROTECTED] > Dec 9, 2006 at 05:39 PM

Well, with your experience it shouldn't be to difficult. (Hmmm..., that 
may be a bit of a loaded sentence :)) I would start by looking at some 
of the example programs and getting them to compile.

For this program you need to look at the mdlScan_... functions or the 
mdlScanCriteria_... functions. The mdlScanCriteria_... functions were 
introduced in V8. With these functions you set up your search criteria 
and the scanner reads through the entire file and returns matching 
elements or elements addresses (Addresses are preferred).

I have no experience with tags so I can't help you there.

For writing elements out to another file look at the mdlWorkDgn_... 
functions.

This newsgroup is not used much anymore because of spam issues. Bentley 
have there own newsgroups where you will find a ton of information. A 
lot of knowledgeable people hang out there. From your browser go to 
http://discussion.bentley.com/
You can also access the groups with a news reader. The server name is 
discussion.bentley.com
Personally I don't care for the browser interface.

HTH
Dan

gtissington@[EMAIL PROTECTED]
 wrote:
> I'm a complete Newbie with MDL etc.  What I've been asked to do is as
> follows
> 
> Write a utility to split a single Microstation DGN file into multiple
> output fles based on the assigned Microstation Tag elements.
> 
> It is a bit like extracting levels into separate files.
> 
> Each element has a set of microstation tags indicating which circuit(s)
> it belongs to.
> 
> What I need is a batch process to scan the input DGN and produce
> 1.DGN,2.DGN,3.DGN, etc based on the tags assiged
> 
> 
> 
> 2 Questions...
> 
> 1) is this too complicated for a first MDL project?  I have 20 years
> with C/C++/VB/C# etc.  I'm just new to MDL.
> 2) I's really appreciate an advice on which api's, objects or tools I
> could use to get this done a simpley as possible.
> 
> Thanks in adavance.
>
 




 2 Posts in Topic:
Filter DGN's by element tag
gtissington@[EMAIL PROTEC  2006-12-08 16:21:13 
Re: Filter DGN's by element tag
Daniel MacNeil <dan_do  2006-12-09 17:39:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 14:21:22 CST 2008.