Author Topic: Custom Props in Sheet Sets  (Read 4325 times)

0 Members and 1 Guest are viewing this topic.

ML

  • Guest
Re: Custom Props in Sheet Sets
« Reply #15 on: February 26, 2008, 10:57:30 AM »

I mean, I took Mark off the end to match the function call everywhere else

ML

  • Guest
Re: Custom Props in Sheet Sets
« Reply #16 on: February 26, 2008, 11:27:01 AM »

Murph
Finally! I got the result I was looking for
The only thing not working is when it checks for if a sheet set is open.
For now, that is commented out.

For whatever reason, I was thinking that the custom props needed to be changed globally in the properties dialog box.

Now, I see how this is working; we have to loop through each sheet in the sheet set, have the associated fields present in that particular layout in the sheet, then we edit our props and Regen.

Sound about right?

Very cool!

So, now it brings me back to where you probably are; that is what sheet do you (the user) want to edit?
Or, better yet, have the code recognize what sheet is open (current) prompt them with the custom props (as an attribute dialog box would) and allow them to edit accordingly.

I think (not sure) that we can use the attribute editor still with fields.

Am I more on base now?

Thank you Murph for all the help so far.

Now that I see what is going on, I may be able to understand your project better.

Mark

Murph

  • Bull Frog
  • Posts: 402
  • P.I.T.A.
Re: Custom Props in Sheet Sets
« Reply #17 on: February 26, 2008, 12:29:30 PM »
Mark,

From the sounds of it you have it right on the nose now.

You can have a Custom Sheet SET Property and a Custom Sheet Property.
The way this is doing it is a Custom Sheet Property.

If you look through the whole code that I sent you you will see that it is a custom dialog box that:
Lists all the drawings in a sheet set with all Properties editable.
Allows the creation of a new sheet within the sheet set.
Allows global and multiple selection editing of Custom Sheet Properties.
Exports/Imports sheet set information via Excel

Good luck and ask questions. I will try to check back more regularly.

Murph
Murphy's Law applies to all.
Whatever can go wrong, will, and at the most inopportune time.

ML

  • Guest
Re: Custom Props in Sheet Sets
« Reply #18 on: February 26, 2008, 12:51:16 PM »
Hey Murph

Yes, thank you so much!

This is how I started the post; with the knowledge that there are Custom Sheet and Sheet Set Props

Realistically, The sheet props only need to be edited in the respective sheets and globally for the sheets props.

So, now you have me on the right path, I may be able to run with it.

We have a VB form that captures the project info that the user enters and writes it out to a txt file.

I would like to be able to bring that same info (from the txt file) into the respective drawings and edit the respective props (Fields)

Do you think your project would allow me to get that result?

Thanks again!

Mark




Murph

  • Bull Frog
  • Posts: 402
  • P.I.T.A.
Re: Custom Props in Sheet Sets
« Reply #19 on: February 28, 2008, 07:15:01 AM »
Mark,

You should be able to do that with the txt file, no problem.
Just look at all of the stuff that for Excel and you will see where it is importing the info.

Murph
Murphy's Law applies to all.
Whatever can go wrong, will, and at the most inopportune time.

ML

  • Guest
Re: Custom Props in Sheet Sets
« Reply #20 on: February 28, 2008, 10:41:17 AM »

Yes,
I absolutely was looking at it Murph.
I used your export feature (very nice) however, it froze ACAD up.
There are a number of things that could have caused that.

Once I get the basic principle of what I am trying to do, then I will certainly get into the importing part.

We have the attributes being filled in with the text file that is generated by the user filling out the form.

Now, we want to go to fields (cust props) and I will need to do the same.

So, I just need to make sure that I understand how to edit the props programmatically before I proceed to that step.

Thanks!
Mark

ML

  • Guest
Re: Custom Props in Sheet Sets
« Reply #21 on: February 28, 2008, 10:43:35 AM »

I noticed you said
Quote
no problem :)

Shewwww, this is the probably the longest I have ever got hung up on a VBA project.

In my opinion, the syntax is very different then most VBA code and there is not a lot of good info out there for sheet sets that I have seen.

Thanks!
Mark

ML

  • Guest
Re: Custom Props in Sheet Sets
« Reply #22 on: March 12, 2008, 03:10:59 AM »

With a lot of help from Murph,
I now have some good-working code finally.
If anyone is interested, let me know and I will get it to you

Mark