Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
CAD General / How was AU 2017?
« Last post by MSTG007 on November 17, 2017, 06:59:44 am »
Just curious what your take was on Autodesk University this year. Anything big other than the fact of centralizing all project related data and ESRI and Autodesk partnering up?
22
.NET / Re: Zen and the art of ....
« Last post by MickD on November 16, 2017, 09:11:14 pm »
Cool, not too far south then :)
23
.NET / Re: Zen and the art of ....
« Last post by kdub on November 16, 2017, 08:53:06 pm »
Going over to help look after Lorraine's folks.

Colder ; Yes. I've been researching thermal underwear. All my time in Queensland has ruined me for anything under about 7 Deg C .. weird since I lived in Orange for a while and it does get a little colder out there :)  admittedly I was about 24 at the time and my blood is a bit different now.

Moving to Pukekohe, south of Auckland ... wonderful country. Looking forward to growing veggies in some decent soil :)


24
.NET / Re: Zen and the art of ....
« Last post by MickD on November 16, 2017, 08:41:09 pm »
...

Your post makes me want to read the book again Mick ... unfortunately all my books are boxed up and on a boat to New Zealand, so I'll forgo that pleasure for a month or so.

Jumping ship Kerry?
Can't say I blame you :D Will be a bit cooler though!
25
.NET / Re: Zen and the art of ....
« Last post by kdub on November 16, 2017, 08:17:04 pm »
To paraphrase Mr. Miyagi  in The Karate Kid
 
when the kid says that he's worried about the tournament:
 
“Daniel-san, trust quality of what you know, not quantity.”

Related to knowledge;
I think it's not necessary to know everything, just to know what is important, and know it very well.

Your post makes me want to read the book again Mick ... unfortunately all my books are boxed up and on a boat to New Zealand, so I'll forgo that pleasure for a month or so.


26
.NET / Re: Zen and the art of ....
« Last post by MickD on November 16, 2017, 07:35:00 pm »
I'm just reading this now after picking it up a few times over the years and put it down as I don't like reading books like this as pdf's or web pages etc.
I still wanted to read it so I finally bought the analog version and I'm most of the way through and it's a great read!

I've studied a few of the topics mentioned throughout the book and it's great to have them all together in one place as a refresher and to deepen my understanding given the authors take on them.

One of the best takeaways is the discussion on Quality. My take so far is that Quality is not the finished product (although we just 'know' quality when we see it) but in the actual doing of the tasks to produce the object. Yes, quality is in the result but without putting it in during the process of creating it won't appear.

You can argue that it's machines that make quality products these days, yes they do but if the Quality wasn't there during the design and building of these machines the output would be inferior.

As an example, the Japanese made great motorcycles that almost wiped out the British and American bikes of the time but it wasn't that they were better bikes (they weren't in many ways) but with their understanding of Quality (Zen/Awareness/Focus?) they took existing principles and built production lines that made them better.
American bikes and cars of the time (and today) no doubt had Quality in design and performance but it was in the manufacturing where they lacked this Qualtiy.

Programming is no different...:)
27
.NET / Re: Mleaders in Bricscad.
« Last post by Atook on November 16, 2017, 06:20:44 pm »
Thanks Mick.
28
.NET / Re: Mleaders in Bricscad.
« Last post by MickD on November 16, 2017, 06:00:27 pm »
sorry Atook, it's been a while but I dug out a snippet I use below, hth

Code - C#: [Select]
  1.        public static void DrawLeaderForText(Point3d startPoint, Point3d endPoint, ObjectId textId)
  2.        {
  3.            var db = HostApplicationServices.WorkingDatabase;
  4.            using (var tr = db.TransactionManager.StartTransaction())
  5.            {
  6.                var layout = tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite) as BlockTableRecord;
  7.                var leader = new Leader();
  8.                //leader.SetDatabaseDefaults();
  9.                leader.AppendVertex(startPoint);
  10.                leader.AppendVertex(endPoint);
  11.                leader.HasArrowHead = false;
  12.                var mt = tr.GetObject(textId, OpenMode.ForRead) as MText;
  13.                if(mt != null)
  14.                {
  15.                    var tsid = mt.TextStyleId;
  16.                    leader.TextStyleId = tsid;
  17.                    leader.DimensionStyle = db.Dimstyle;
  18.                }
  19.  
  20.                layout.AppendEntity(leader);
  21.                tr.AddNewlyCreatedDBObject(leader, true);
  22.                leader.Annotation = textId;
  23.                leader.EvaluateLeader();
  24.                tr.Commit();
  25.            }
  26.        }
  27.  
29
.NET / Re: Mleaders in Bricscad.
« Last post by MickD on November 16, 2017, 05:44:13 pm »
I only quickly scanned your code but I've had problems with leaders and mtext before and found I had to add the leader to the db before doing any modifications. That is, create a standard leader with defaults, add it to the db then set points and mtext etc.

hth

MickD, when you say add it to the db, do I need to add it to the transaction, or actually commit the transaction, then retrieve the Mleader  with a new transaction again and set the properties?

Yep, commit it then open with the returned objectid. cheers.
30
.NET / Re: Mleaders in Bricscad.
« Last post by Atook on November 16, 2017, 04:52:43 pm »
I only quickly scanned your code but I've had problems with leaders and mtext before and found I had to add the leader to the db before doing any modifications. That is, create a standard leader with defaults, add it to the db then set points and mtext etc.

hth

MickD, when you say add it to the db, do I need to add it to the transaction, or actually commit the transaction, then retrieve the Mleader  with a new transaction again and set the properties?
Pages: 1 2 [3] 4 5 ... 10