How can i manipulate lines during sketch mode?

How can i manipulate lines during sketch mode?

Anonymous
Not applicable
662 Views
3 Replies
Message 1 of 4

How can i manipulate lines during sketch mode?

Anonymous
Not applicable

Hi everyone!

While I'm able to manipulate lines in general - whenever i enter sketch mode (e.g. in order to create a ceiling boundary) all addins are greyed out and I don't know how to access any Information at all.

 

Maybe I'm missing something basic here, but I couldn't find any help/suggestions in the other Forum Threads so far - any help?

0 Likes
663 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Hi there,

 

When you are in a sketch ceiling command or a floor, roof or stair by sketch command everything that is not related to sketching those elements will not be available to you, which is why all the add-ins are greyed out, you need to finish the sketch to access all that information again.

 

What add-ins are you trying to/ wanting to access while you are sketching a ceiling's boundary? I see you mentioned something about manipulating lines - how are you wanting to manipulate your sketch lines?

0 Likes
Message 3 of 4

Anonymous
Not applicable

The Goal is to develop an addin that is usable during sketching (in order to facilitate some workflows).

 

So i want to delete elements/lines or change their properties (while in sketch mode).

 

However - how can i make an addin for that if all addins are disabled at that point?

 

0 Likes
Message 4 of 4

dnenovMXKU9
Enthusiast
Enthusiast

The silence of the lambs means it cannot be done. 

 

But check out the answer of Dimitar Venkov from this Dynamo thread. If you manage to get to the ModelLines/Arcs that make up the sketch, you can manipulate those. The only way seems to be through sorting through the remnants of a deleted transaction. Let's say you have a floor you wanted to get the sketch fiddled with:

var floor = doc.GetElement(e) as Floor;

using(Transaction t = new Transaction(doc, "Fake"))
{
   t.Start();
   var deleted = doc.Delete(floor);
   t.RollBack();
}

foreach(var deletedElement in deleted)
{
   if(deletedElement.GetType().ToString().Equals("Autodesk.Revit.DB.ModelLine")
   {
      // This is a ModelLine that's part of the Sketch
// And you can manipulate it } }

 

That's just the direction that you could go, but the process might be slow. 

0 Likes